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 final javax.mail.Addressprotected final javax.mail.Address[]protected IMailSecurityConfigprotected booleanprotected final Stringprotected final javax.mail.Address[]Fields inherited from interface IBaseMailData
ADDRESS_SPLITTER -
Constructor Summary
ConstructorsModifierConstructorDescriptionDeprecated.TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to) Deprecated.TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to, EMailEncrpytionType encrpytionType) Deprecated.TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to, Map<String, String> headers) Deprecated.TextMailData(String subject, String body, String bodyMimeType, String from, javax.mail.Address[] reply, String senderName, String to, EMailEncrpytionType encryptionType) Deprecated.TextMailData(String subject, String body, String bodyMimeType, javax.mail.Address from, javax.mail.Address[] reply, javax.mail.Address[] to) Deprecated.protectedTextMailData(String subject, javax.mail.Address[] to, javax.mail.Address[] reply, javax.mail.Address from, javax.mail.Address[] cc, javax.mail.Address[] bcc, boolean sendSeparateMails, IMailSecurityConfig securityConfig, List<BodyPartData> bodyParts, Map<String, String> headers) -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.mail.Address[]getAddressesByString(String addressesString) javax.mail.Address[]getBcc()getBody()Deprecated.Deprecated.javax.mail.Address[]getCc()Deprecated.javax.mail.AddressgetFrom()javax.mail.Address[]getReply()Gets the security configuration for this mail, which controls whether and how the mail should be encrypted and/or signed, and what to do if encryption/signing fails.booleanFlag to indicate that mails should be send separately to the to-recipient.javax.mail.Address[]getTo()voidDeprecated.voidsetBcc(javax.mail.Address[] bcc) Deprecated.UseMailDataBuilder.bcc(Address[])orMailDataBuilder.bcc(String)instead.voidDeprecated.UseMailDataBuilder.cc(String)orMailDataBuilder.cc(Address[])instead.voidsetCc(javax.mail.Address[] cc) Deprecated.UseMailDataBuilder.cc(Address[])orMailDataBuilder.cc(String)instead.voidsetEncryptionType(EMailEncrpytionType encryptionType) Deprecated.voidsetSendSeparateMails(boolean sendSeparateMails) Deprecated.UseMailDataBuilder.sendSeparateMails(boolean)instead.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IBaseMailData
buildMimeMessage, buildMimeParts, getMimeMessage
-
Field Details
-
subject
-
to
protected final javax.mail.Address[] to -
reply
protected final javax.mail.Address[] reply -
from
protected final javax.mail.Address from -
cc
protected javax.mail.Address[] cc -
bcc
protected javax.mail.Address[] bcc -
sendSeparateMails
protected boolean sendSeparateMails -
securityConfig
-
bodyParts
-
headers
-
-
Constructor Details
-
TextMailData
-
TextMailData
-
TextMailData
-
TextMailData
@Deprecated public TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to, EMailEncrpytionType encrpytionType) throws Exception Deprecated.- Throws:
Exception
-
TextMailData
@Deprecated public TextMailData(String subject, String body, String bodyMimeType, String from, javax.mail.Address[] reply, String senderName, String to, EMailEncrpytionType encryptionType) throws Exception Deprecated.- Throws:
Exception
-
TextMailData
@Deprecated public TextMailData(String subject, String body, String bodyMimeType, javax.mail.Address from, javax.mail.Address[] reply, javax.mail.Address[] to) Deprecated. -
TextMailData
protected TextMailData(String subject, javax.mail.Address[] to, javax.mail.Address[] reply, javax.mail.Address from, javax.mail.Address[] cc, javax.mail.Address[] bcc, boolean sendSeparateMails, IMailSecurityConfig securityConfig, List<BodyPartData> bodyParts, Map<String, String> headers)
-
-
Method Details
-
getBody
-
getBodyMimeType
-
getEncryptionType
Deprecated. -
setEncryptionType
Deprecated. -
getFileParts
- Specified by:
getFilePartsin interfaceIBaseMailData
-
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
-
setSendSeparateMails
Deprecated.UseMailDataBuilder.sendSeparateMails(boolean)instead.- Parameters:
sendSeparateMails-trueif mails should be separately,falseotherwise
-
setBcc
Deprecated.UseMailDataBuilder.bcc(String)orMailDataBuilder.bcc(Address[])instead.- Parameters:
addresses- The BCC addresses to set as a string.- Throws:
javax.mail.internet.AddressException- When an address is not a valid email address.
-
setBcc
Deprecated.UseMailDataBuilder.bcc(Address[])orMailDataBuilder.bcc(String)instead.- Parameters:
bcc- the bcc addresses to set
-
setCc
Deprecated.UseMailDataBuilder.cc(String)orMailDataBuilder.cc(Address[])instead.- Parameters:
addresses- The CC addresses to set as a string.- Throws:
javax.mail.internet.AddressException- When an address is not a valid email address.
-
setCc
Deprecated.UseMailDataBuilder.cc(Address[])orMailDataBuilder.cc(String)instead.- Parameters:
cc- the cc addresses to set
-
getAddressesByString
protected javax.mail.Address[] getAddressesByString(String addressesString) throws javax.mail.internet.AddressException - Throws:
javax.mail.internet.AddressException
-
getSubject
- Specified by:
getSubjectin interfaceIBaseMailData
-
getTo
public javax.mail.Address[] getTo()- Specified by:
getToin interfaceIBaseMailData- Returns:
- the to
-
getReply
public javax.mail.Address[] getReply()- Specified by:
getReplyin interfaceIBaseMailData- Returns:
- the reply
-
getFrom
public javax.mail.Address getFrom()- Specified by:
getFromin interfaceIBaseMailData- Returns:
- the from
-
getCc
public javax.mail.Address[] getCc()- Specified by:
getCcin interfaceIBaseMailData- Returns:
- the cc
-
getBcc
public javax.mail.Address[] getBcc()- Specified by:
getBccin interfaceIBaseMailData- Returns:
- the bcc
-
getSecurityConfig
Description copied from interface:IBaseMailDataGets the security configuration for this mail, which controls whether and how the mail should be encrypted and/or signed, and what to do if encryption/signing fails.- Specified by:
getSecurityConfigin interfaceIBaseMailData- Returns:
- security configuration for this mail
-
getBodyParts
- Specified by:
getBodyPartsin interfaceIBaseMailData
-
getHeaders
- Specified by:
getHeadersin interfaceIBaseMailData
-
MailDataBuilder.bcc(String)orMailDataBuilder.bcc(Address[])instead.