程序包 com.sh.mail.core

类 EmailAttachment

java.lang.Object
com.sh.mail.core.EmailAttachment

public class EmailAttachment extends Object

Description: This class models an email attachment. Used by MultiPartEmail.

Title:首亨软件 - TSS/CRM等

从以下版本开始:
Aug 13, 2012
  • 字段详细资料

    • ATTACHMENT

      public static final String ATTACHMENT
      Definition of the part being an attachment
      另请参阅:
    • INLINE

      public static final String INLINE
      Definition of the part being inline
      另请参阅:
  • 构造器详细资料

    • EmailAttachment

      public EmailAttachment()
  • 方法详细资料

    • getDescription

      public String getDescription()
      Get the description.
      返回:
      A String.
      从以下版本开始:
      1.0
    • getName

      public String getName()
      Get the name.
      返回:
      A String.
      从以下版本开始:
      1.0
    • getPath

      public String getPath()
      Get the path.
      返回:
      A String.
      从以下版本开始:
      1.0
    • getURL

      public URL getURL()
      Get the URL.
      返回:
      A URL.
      从以下版本开始:
      1.0
    • getDisposition

      public String getDisposition()
      Get the disposition.
      返回:
      A String.
      从以下版本开始:
      1.0
    • setDescription

      public void setDescription(String desc)
      Set the description.
      参数:
      desc - A String.
      从以下版本开始:
      1.0
    • setName

      public void setName(String aName)
      Set the name.
      参数:
      aName - A String.
      从以下版本开始:
      1.0
    • setPath

      public void setPath(String aPath)
      Set the path to the attachment. The path can be absolute or relative and should include the filename.

      Example: /home/user/images/image.jpg
      Example: images/image.jpg

      参数:
      aPath - A String.
      从以下版本开始:
      1.0
    • setURL

      public void setURL(URL aUrl)
      Set the URL.
      参数:
      aUrl - A URL.
      从以下版本开始:
      1.0
    • setDisposition

      public void setDisposition(String aDisposition)
      Set the disposition.
      参数:
      aDisposition - A String.
      从以下版本开始:
      1.0