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 Summary
FieldsModifier 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.IBaseMailData
ADDRESS_SPLITTER -
Constructor Summary
ConstructorsConstructorDescriptionTextMailData(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 Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.fc.interfaces.mail.IBaseMailData
buildMimeMessage, buildMimeParts, getMimeMessage
-
Field Details
-
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
-
bodyParts
-
headers
-
-
Constructor Details
-
TextMailData
public TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to, Map<String, String> headers) throws Exception- Throws:
Exception
-
TextMailData
public TextMailData(String subject, String body, String bodyMimeType, String from, String to) throws Exception - Throws:
Exception
-
TextMailData
public TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to) throws Exception - Throws:
Exception
-
TextMailData
public TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to, EMailEncrpytionType encryptionType) throws Exception - Throws:
Exception
-
TextMailData
public 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 interfaceIBaseMailData- Returns:
- the subject
-
getFrom
public javax.mail.Address getFrom()- Specified by:
getFromin interfaceIBaseMailData- Returns:
- the from
-
getReply
public javax.mail.Address[] getReply()- Specified by:
getReplyin interfaceIBaseMailData- Returns:
- the reply
-
getTo
public javax.mail.Address[] getTo()- Specified by:
getToin interfaceIBaseMailData- Returns:
- the to
-
setCc
public void setCc(javax.mail.Address[] cc) -
setCc
- Throws:
javax.mail.internet.AddressException
-
getCc
public javax.mail.Address[] getCc()- Specified by:
getCcin interfaceIBaseMailData- Returns:
- the cc
-
setBcc
public void setBcc(javax.mail.Address[] bcc) -
setBcc
- Throws:
javax.mail.internet.AddressException
-
getBcc
public javax.mail.Address[] getBcc()- Specified by:
getBccin interfaceIBaseMailData- Returns:
- the bcc
-
setSendSeparateMails
public void setSendSeparateMails(boolean sendSeparateMails) -
getSendSeparateMails
public 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 interfaceIBaseMailData- Returns:
trueif mails should be separately,falseotherwise
-
setEncryptionType
-
getEncryptionType
- Specified by:
getEncryptionTypein interfaceIBaseMailData
-
getBodyParts
- Specified by:
getBodyPartsin interfaceIBaseMailData
-
getFileParts
- Specified by:
getFilePartsin interfaceIBaseMailData
-
getAddressesByString
protected javax.mail.Address[] getAddressesByString(String addressesString) throws javax.mail.internet.AddressException - Throws:
javax.mail.internet.AddressException
-
getBody
Deprecated.- Returns:
- the body
-
getBodyMimeType
Deprecated.- Returns:
- the bodyMimeType
-
getHeaders
- Specified by:
getHeadersin interfaceIBaseMailData
-