Class TextMailData

java.lang.Object
de.xima.fc.mdl.mail.TextMailData
All Implemented Interfaces:
IBaseMailData, Serializable
Direct Known Subclasses:
MultipartMailData, SimpleTextMail

public class TextMailData extends Object implements IBaseMailData
Model containing basic mail properties
See Also:
  • Field Details

    • subject

      protected final String subject
    • to

      protected final javax.mail.Address[] to
    • reply

      protected final javax.mail.Address[] reply
    • cc

      protected javax.mail.Address[] cc
    • bcc

      protected javax.mail.Address[] bcc
    • from

      protected final javax.mail.Address from
    • sendSeparateMails

      protected boolean sendSeparateMails
    • forceEncryption

      protected boolean forceEncryption
    • encryptionType

      protected EMailEncrpytionType encryptionType
    • bodyParts

      protected List<BodyPartData> bodyParts
    • headers

      protected Map<String,String> headers
  • Constructor Details

  • Method Details

    • getSubject

      public String getSubject()
      Specified by:
      getSubject in interface IBaseMailData
      Returns:
      the subject
    • getFrom

      public javax.mail.Address getFrom()
      Specified by:
      getFrom in interface IBaseMailData
      Returns:
      the from
    • getReply

      public javax.mail.Address[] getReply()
      Specified by:
      getReply in interface IBaseMailData
      Returns:
      the reply
    • getTo

      public javax.mail.Address[] getTo()
      Specified by:
      getTo in interface IBaseMailData
      Returns:
      the to
    • setCc

      public void setCc(javax.mail.Address[] cc)
    • setCc

      public void setCc(String addresses) throws javax.mail.internet.AddressException
      Throws:
      javax.mail.internet.AddressException
    • getCc

      public javax.mail.Address[] getCc()
      Specified by:
      getCc in interface IBaseMailData
      Returns:
      the cc
    • setBcc

      public void setBcc(javax.mail.Address[] bcc)
    • setBcc

      public void setBcc(String addresses) throws javax.mail.internet.AddressException
      Throws:
      javax.mail.internet.AddressException
    • getBcc

      public javax.mail.Address[] getBcc()
      Specified by:
      getBcc in interface IBaseMailData
      Returns:
      the bcc
    • setSendSeparateMails

      public void setSendSeparateMails(boolean sendSeparateMails)
    • getSendSeparateMails

      public boolean getSendSeparateMails()
      Description copied from interface: IBaseMailData
      Flag to indicate that mails should be send separately to the to-recipient. Cc- and Bcc-recipients will be ignored because its not clear how to handle them
      Specified by:
      getSendSeparateMails in interface IBaseMailData
      Returns:
      true if mails should be separately, false otherwise
    • setEncryptionType

      public void setEncryptionType(EMailEncrpytionType encryptionType)
    • getEncryptionType

      public EMailEncrpytionType getEncryptionType()
      Specified by:
      getEncryptionType in interface IBaseMailData
    • getBodyParts

      public List<BodyPartData> getBodyParts()
      Specified by:
      getBodyParts in interface IBaseMailData
    • getFileParts

      public List<FilePartData> getFileParts()
      Specified by:
      getFileParts in interface IBaseMailData
    • getAddressesByString

      protected javax.mail.Address[] getAddressesByString(String addressesString) throws javax.mail.internet.AddressException
      Throws:
      javax.mail.internet.AddressException
    • getBody

      @Deprecated public String getBody()
      Deprecated.
      Returns:
      the body
    • getBodyMimeType

      @Deprecated public String getBodyMimeType()
      Deprecated.
      Returns:
      the bodyMimeType
    • getHeaders

      public Map<String,String> getHeaders()
      Specified by:
      getHeaders in interface IBaseMailData