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 EMailEncrpytionType
protected boolean
protected final javax.mail.Address
protected final javax.mail.Address[]
protected boolean
protected final String
protected 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.Address
getFrom()
javax.mail.Address[]
getReply()
boolean
Flag to indicate that mails should be send separately to the to-recipient.javax.mail.Address[]
getTo()
void
void
setBcc
(javax.mail.Address[] bcc) void
void
setCc
(javax.mail.Address[] cc) void
setEncryptionType
(EMailEncrpytionType encryptionType) void
setSendSeparateMails
(boolean sendSeparateMails) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getSubject
in interfaceIBaseMailData
- Returns:
- the subject
-
getFrom
public javax.mail.Address getFrom()- Specified by:
getFrom
in interfaceIBaseMailData
- Returns:
- the from
-
getReply
public javax.mail.Address[] getReply()- Specified by:
getReply
in interfaceIBaseMailData
- Returns:
- the reply
-
getTo
public javax.mail.Address[] getTo()- Specified by:
getTo
in 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:
getCc
in 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:
getBcc
in interfaceIBaseMailData
- 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 interfaceIBaseMailData
- Returns:
true
if mails should be separately,false
otherwise
-
setEncryptionType
-
getEncryptionType
- Specified by:
getEncryptionType
in interfaceIBaseMailData
-
getBodyParts
- Specified by:
getBodyParts
in interfaceIBaseMailData
-
getFileParts
- Specified by:
getFileParts
in 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:
getHeaders
in interfaceIBaseMailData
-