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
public class TextMailData extends Object implements IBaseMailData
Model containing basic mail properties- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.mail.Address[]
bcc
protected List<BodyPartData>
bodyParts
protected javax.mail.Address[]
cc
protected EMailEncrpytionType
encryptionType
protected boolean
forceEncryption
protected javax.mail.Address
from
protected javax.mail.Address[]
reply
protected boolean
sendSeparateMails
protected String
subject
protected javax.mail.Address[]
to
-
Fields inherited from interface de.xima.fc.interfaces.mail.IBaseMailData
ADDRESS_SPLITTER
-
-
Constructor Summary
Constructors Constructor Description TextMailData(String subject, String body, String bodyMimeType, String from, String to)
TextMailData(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, 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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected javax.mail.Address[]
getAddressesByString(String addressesString)
javax.mail.Address[]
getBcc()
String
getBody()
Deprecated.String
getBodyMimeType()
Deprecated.List<BodyPartData>
getBodyParts()
javax.mail.Address[]
getCc()
EMailEncrpytionType
getEncryptionType()
List<FilePartData>
getFileParts()
javax.mail.Address
getFrom()
javax.mail.Address[]
getReply()
boolean
getSendSeparateMails()
Flag to indicate that mails should be send separately to the to-recipient.String
getSubject()
javax.mail.Address[]
getTo()
void
setBcc(String addresses)
void
setBcc(javax.mail.Address[] bcc)
void
setCc(String addresses)
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 Detail
-
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
-
-
Constructor Detail
-
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
-
-
Method Detail
-
getSubject
public String 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
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 interfaceIBaseMailData
- 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 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
public void setEncryptionType(EMailEncrpytionType encryptionType)
-
getEncryptionType
public EMailEncrpytionType getEncryptionType()
- Specified by:
getEncryptionType
in interfaceIBaseMailData
-
getBodyParts
public List<BodyPartData> getBodyParts()
- Specified by:
getBodyParts
in interfaceIBaseMailData
-
getFileParts
public List<FilePartData> 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 public String getBody()
Deprecated.- Returns:
- the body
-
getBodyMimeType
@Deprecated public String getBodyMimeType()
Deprecated.- Returns:
- the bodyMimeType
-
-