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[]bccprotected List<BodyPartData>bodyPartsprotected javax.mail.Address[]ccprotected EMailEncrpytionTypeencryptionTypeprotected booleanforceEncryptionprotected javax.mail.Addressfromprotected javax.mail.Address[]replyprotected booleansendSeparateMailsprotected Stringsubjectprotected 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()StringgetBody()Deprecated.StringgetBodyMimeType()Deprecated.List<BodyPartData>getBodyParts()javax.mail.Address[]getCc()EMailEncrpytionTypegetEncryptionType()List<FilePartData>getFileParts()javax.mail.AddressgetFrom()javax.mail.Address[]getReply()booleangetSendSeparateMails()Flag to indicate that mails should be send separately to the to-recipient.StringgetSubject()javax.mail.Address[]getTo()voidsetBcc(String addresses)voidsetBcc(javax.mail.Address[] bcc)voidsetCc(String addresses)voidsetCc(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, 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:
 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
public void setCc(String addresses) throws javax.mail.internet.AddressException
- 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
public void setBcc(String addresses) throws javax.mail.internet.AddressException
- 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
public void setEncryptionType(EMailEncrpytionType encryptionType)
 
- 
getEncryptionType
public EMailEncrpytionType getEncryptionType()
- Specified by:
 getEncryptionTypein interfaceIBaseMailData
 
- 
getBodyParts
public List<BodyPartData> getBodyParts()
- Specified by:
 getBodyPartsin interfaceIBaseMailData
 
- 
getFileParts
public List<FilePartData> 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 public String getBody()
Deprecated.- Returns:
 - the body
 
 
- 
getBodyMimeType
@Deprecated public String getBodyMimeType()
Deprecated.- Returns:
 - the bodyMimeType
 
 
 - 
 
 -