Package de.xima.fc.mdl.mail
Class TextMailData
java.lang.Object
de.xima.fc.mdl.mail.TextMailData
- All Implemented Interfaces:
- IBaseMailData,- Serializable
- Direct Known Subclasses:
- MultipartMailData,- SimpleTextMail
Model containing basic mail properties
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected javax.mail.Address[]protected List<BodyPartData>protected javax.mail.Address[]protected EMailEncrpytionTypeprotected booleanprotected final javax.mail.Addressprotected final javax.mail.Address[]protected booleanprotected final Stringprotected final javax.mail.Address[]Fields inherited from interface de.xima.fc.interfaces.mail.IBaseMailDataADDRESS_SPLITTER
- 
Constructor SummaryConstructorsConstructorDescriptionTextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to) TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to, EMailEncrpytionType encryptionType) TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to, Map<String, String> headers) TextMailData(String subject, String body, String bodyMimeType, String from, javax.mail.Address[] reply, String senderName, String to, EMailEncrpytionType encryptionType) TextMailData(String subject, String body, String bodyMimeType, javax.mail.Address from, javax.mail.Address[] reply, javax.mail.Address[] to) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected javax.mail.Address[]getAddressesByString(String addressesString) javax.mail.Address[]getBcc()getBody()Deprecated.Deprecated.javax.mail.Address[]getCc()javax.mail.AddressgetFrom()javax.mail.Address[]getReply()booleanFlag to indicate that mails should be send separately to the to-recipient.javax.mail.Address[]getTo()voidvoidsetBcc(javax.mail.Address[] bcc) voidvoidsetCc(javax.mail.Address[] cc) voidsetEncryptionType(EMailEncrpytionType encryptionType) voidsetSendSeparateMails(boolean sendSeparateMails) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.fc.interfaces.mail.IBaseMailDatabuildMimeMessage, buildMimeParts, getMimeMessage
- 
Field Details- 
subject
- 
toprotected final javax.mail.Address[] to
- 
replyprotected final javax.mail.Address[] reply
- 
ccprotected javax.mail.Address[] cc
- 
bccprotected javax.mail.Address[] bcc
- 
fromprotected final javax.mail.Address from
- 
sendSeparateMailsprotected boolean sendSeparateMails
- 
forceEncryptionprotected boolean forceEncryption
- 
encryptionType
- 
bodyParts
- 
headers
 
- 
- 
Constructor Details- 
TextMailDatapublic TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to, Map<String, String> headers) throws Exception- Throws:
- Exception
 
- 
TextMailDatapublic TextMailData(String subject, String body, String bodyMimeType, String from, String to) throws Exception - Throws:
- Exception
 
- 
TextMailDatapublic TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to) throws Exception - Throws:
- Exception
 
- 
TextMailDatapublic TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to, EMailEncrpytionType encryptionType) throws Exception - Throws:
- Exception
 
- 
TextMailDatapublic TextMailData(String subject, String body, String bodyMimeType, String from, javax.mail.Address[] reply, String senderName, String to, EMailEncrpytionType encryptionType) throws Exception - Throws:
- Exception
 
- 
TextMailData
 
- 
- 
Method Details- 
getSubject- Specified by:
- getSubjectin interface- IBaseMailData
- Returns:
- the subject
 
- 
getFrompublic javax.mail.Address getFrom()- Specified by:
- getFromin interface- IBaseMailData
- Returns:
- the from
 
- 
getReplypublic javax.mail.Address[] getReply()- Specified by:
- getReplyin interface- IBaseMailData
- Returns:
- the reply
 
- 
getTopublic javax.mail.Address[] getTo()- Specified by:
- getToin interface- IBaseMailData
- Returns:
- the to
 
- 
setCcpublic void setCc(javax.mail.Address[] cc) 
- 
setCc- Throws:
- javax.mail.internet.AddressException
 
- 
getCcpublic javax.mail.Address[] getCc()- Specified by:
- getCcin interface- IBaseMailData
- Returns:
- the cc
 
- 
setBccpublic void setBcc(javax.mail.Address[] bcc) 
- 
setBcc- Throws:
- javax.mail.internet.AddressException
 
- 
getBccpublic javax.mail.Address[] getBcc()- Specified by:
- getBccin interface- IBaseMailData
- Returns:
- the bcc
 
- 
setSendSeparateMailspublic void setSendSeparateMails(boolean sendSeparateMails) 
- 
getSendSeparateMailspublic boolean getSendSeparateMails()Description copied from interface:IBaseMailDataFlag 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:
- getSendSeparateMailsin interface- IBaseMailData
- Returns:
- trueif mails should be separately,- falseotherwise
 
- 
setEncryptionType
- 
getEncryptionType- Specified by:
- getEncryptionTypein interface- IBaseMailData
 
- 
getBodyParts- Specified by:
- getBodyPartsin interface- IBaseMailData
 
- 
getFileParts- Specified by:
- getFilePartsin interface- IBaseMailData
 
- 
getAddressesByStringprotected javax.mail.Address[] getAddressesByString(String addressesString) throws javax.mail.internet.AddressException - Throws:
- javax.mail.internet.AddressException
 
- 
getBodyDeprecated.- Returns:
- the body
 
- 
getBodyMimeTypeDeprecated.- Returns:
- the bodyMimeType
 
- 
getHeaders- Specified by:
- getHeadersin interface- IBaseMailData
 
 
-