|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.seam.mail.core.EmailMessage
public class EmailMessage
Stores infomation about an EmailMessage while it is being build and after sending
Constructor Summary | |
---|---|
EmailMessage()
|
Method Summary | |
---|---|
void |
addAttachment(EmailAttachment attachment)
Adds an EmailAttachment to the EmailMessage |
void |
addAttachments(Collection<? extends EmailAttachment> attachments)
Adds a Collection of EmailAttachment to the EmailMessage |
void |
addBccAddress(InternetAddress bccAddress)
Adds a single InternetAddress to the BCC addresses on the EmailMessage |
void |
addBccAddresses(Collection<InternetAddress> bccAddresses)
Adds a Collection of InternetAddress to the BCC addresses on the |
void |
addCcAddress(InternetAddress ccAddress)
Adds a single InternetAddress to the CC addresses on the EmailMessage |
void |
addCcAddresses(Collection<InternetAddress> ccAddresses)
Adds a Collection of InternetAddress to the CC addresses on the |
void |
addDeliveryReceiptAddress(InternetAddress address)
Adds a InternetAddress as a Delivery Receipt address |
void |
addDeliveryReceiptAddresses(Collection<InternetAddress> deliveryReceiptAddresses)
Adds a Collection of InternetAddress as a Delivery Receipt address |
void |
addFromAddress(InternetAddress fromAddress)
Adds a single InternetAddress to the FROM addresses on the EmailMessage |
void |
addFromAddresses(Collection<InternetAddress> fromAddresses)
Adds a Collection of InternetAddress to the FROM addresses on the EmailMessage |
void |
addHeader(Header header)
Add a single Header to the EmailMessage |
void |
addHeaders(Collection<Header> headers)
Add a Collection of Header to the EmailMessage |
void |
addReadReceiptAddress(InternetAddress address)
Adds a InternetAddress as a Read Receipt address |
void |
addReadReceiptAddresses(Collection<InternetAddress> readReceiptAddresses)
Adds a Collection of InternetAddress as a Read Receipt address |
void |
addReplyToAddress(InternetAddress replyToAddress)
Adds a single InternetAddress to the REPLY-TO addresses on the EmailMessage |
void |
addReplyToAddresses(Collection<InternetAddress> replyToAddresses)
Adds a Collection of InternetAddress to the REPLY-TO addresses on the |
void |
addToAddress(InternetAddress toAddress)
Adds a single InternetAddress to the TO addresses on the EmailMessage |
void |
addToAddresses(Collection<InternetAddress> toAddresses)
Adds a Collection of InternetAddress to the TO addresses on the |
List<EmailAttachment> |
getAttachments()
Gets a Collection representing all the Attachments on the EmailMessage |
List<InternetAddress> |
getBccAddresses()
Get the Collection of BCC addresses on the EmailMeassage |
List<InternetAddress> |
getCcAddresses()
Get the Collection of CC addresses on the EmailMeassage |
List<InternetAddress> |
getDeliveryReceiptAddresses()
Get the collection of InternetAddress which are Delivery Reciept addresses |
List<InternetAddress> |
getFromAddresses()
Get the Collection of FROM addresses on the EmailMeassage |
List<Header> |
getHeaders()
Get a Collection of additional headers added to the EmailMessage |
String |
getHtmlBody()
Get the HTML Body of the EmailMessage |
MessagePriority |
getImportance()
Get the Current Importance of the EmailMessage. |
String |
getLastMessageId()
Gets the Message-ID after the EmailMeassage has been sent. |
String |
getMessageId()
Gets the Message-ID of the EmailMeassage. |
List<InternetAddress> |
getReadReceiptAddresses()
Get the collection of InternetAddress which are Read Receipt addresses |
List<InternetAddress> |
getReplyToAddresses()
Get the Collection of REPLY-TO addresses on the EmailMeassage |
ContentType |
getRootContentType()
Get the Root Mime ContentType of the EmailMessage |
String |
getSubject()
Get the Subject of the EmailMessage |
String |
getTextBody()
Get the Text Body of the EmailMessage |
List<InternetAddress> |
getToAddresses()
Get the Collection of TO addresses on the EmailMeassage |
EmailMessageType |
getType()
Get the current EmailMessageType of the EmailMessage |
boolean |
removeBccAddress(InternetAddress bccAddress)
Remove an InternetAddress from the BCC addressses |
boolean |
removeCcAddress(InternetAddress ccAddress)
Remove an InternetAddress from the CC addressses |
boolean |
removeToAddress(InternetAddress toAddress)
Remove an InternetAddress from the TO addressses |
void |
setAttachments(List<EmailAttachment> attachments)
|
void |
setBccAddresses(List<InternetAddress> bccAddresses)
|
void |
setCcAddresses(List<InternetAddress> ccAddresses)
|
void |
setDeliveryReceiptAddresses(List<InternetAddress> deliveryReceiptAddresses)
|
void |
setFromAddresses(List<InternetAddress> fromAddresses)
|
void |
setHeaders(List<Header> headers)
|
void |
setHtmlBody(String htmlBody)
Set the HTML Body of the EmailMessage |
void |
setImportance(MessagePriority importance)
Sets the MessagePriority of the EmailMessage |
void |
setLastMessageId(String lastMessageId)
Sents the Message-ID after the EmailMeassage has been sent. |
void |
setMessageId(String messageId)
Sets the Message-ID for the EmailMeassage. |
void |
setReadReceiptAddresses(List<InternetAddress> readReceiptAddresses)
|
void |
setReplyToAddresses(List<InternetAddress> replyToAddresses)
|
void |
setRootContentType(ContentType rootContentType)
Set the Root Mime ContentType of the EmailMessage |
void |
setSubject(String subject)
Sets the Subject on the EmailMessage |
void |
setTextBody(String textBody)
Set the Text Body of the EmailMessage |
void |
setToAddresses(List<InternetAddress> toAddresses)
|
void |
setType(EmailMessageType type)
Sets the EmailMessageType of the EmailMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmailMessage()
Method Detail |
---|
public ContentType getRootContentType()
public void setRootContentType(ContentType rootContentType)
rootContentType
- SubType to setpublic EmailMessageType getType()
public void setType(EmailMessageType type)
type
- EmailMessageType to set on the EmailMessagepublic String getMessageId()
public void setMessageId(String messageId)
messageId
- Globally unique Message-ID example 1234.5678@test.compublic String getLastMessageId()
public void setLastMessageId(String lastMessageId)
lastMessageId
- Message-ID to be set.public List<InternetAddress> getFromAddresses()
public void setFromAddresses(List<InternetAddress> fromAddresses)
public void addFromAddress(InternetAddress fromAddress)
fromAddress
- public void addFromAddresses(Collection<InternetAddress> fromAddresses)
fromAddresses
- public List<InternetAddress> getReplyToAddresses()
public void setReplyToAddresses(List<InternetAddress> replyToAddresses)
public void addReplyToAddress(InternetAddress replyToAddress)
replyToAddress
- InternetAddress to setpublic void addReplyToAddresses(Collection<InternetAddress> replyToAddresses)
replyToAddresses
- Collection of InternetAddress to addpublic List<InternetAddress> getToAddresses()
public void addToAddress(InternetAddress toAddress)
toAddress
- InternetAddress to setpublic void addToAddresses(Collection<InternetAddress> toAddresses)
toAddresses
- Collection of InternetAddress to addpublic void setToAddresses(List<InternetAddress> toAddresses)
public boolean removeToAddress(InternetAddress toAddress)
toAddress
-
public List<InternetAddress> getCcAddresses()
public void setCcAddresses(List<InternetAddress> ccAddresses)
public void addCcAddress(InternetAddress ccAddress)
ccAddress
- InternetAddress to setpublic void addCcAddresses(Collection<InternetAddress> ccAddresses)
ccAddresses
- Collection of InternetAddress to addpublic boolean removeCcAddress(InternetAddress ccAddress)
ccAddress
-
public List<InternetAddress> getBccAddresses()
public void setBccAddresses(List<InternetAddress> bccAddresses)
public void addBccAddress(InternetAddress bccAddress)
bccAddress
- InternetAddress to setpublic void addBccAddresses(Collection<InternetAddress> bccAddresses)
bccAddresses
- Collection of InternetAddress to addpublic boolean removeBccAddress(InternetAddress bccAddress)
bccAddress
-
public List<Header> getHeaders()
public void setHeaders(List<Header> headers)
public void addHeader(Header header)
header
- Header to setpublic void addHeaders(Collection<Header> headers)
headers
- Collection of Header to add to EmailMessagepublic String getSubject()
public void setSubject(String subject)
subject
- Subject to be setpublic String getTextBody()
public void setTextBody(String textBody)
textBody
- Text Body to be setpublic String getHtmlBody()
public void setHtmlBody(String htmlBody)
htmlBody
- HTML Body to be setpublic List<InternetAddress> getDeliveryReceiptAddresses()
public void setDeliveryReceiptAddresses(List<InternetAddress> deliveryReceiptAddresses)
public void addDeliveryReceiptAddress(InternetAddress address)
address
- InternetAddress to be addedpublic void addDeliveryReceiptAddresses(Collection<InternetAddress> deliveryReceiptAddresses)
deliveryReceiptAddresses
- Collection of InternetAddress to be addedpublic List<InternetAddress> getReadReceiptAddresses()
public void setReadReceiptAddresses(List<InternetAddress> readReceiptAddresses)
public void addReadReceiptAddress(InternetAddress address)
address
- InternetAddress to be addedpublic void addReadReceiptAddresses(Collection<InternetAddress> readReceiptAddresses)
readReceiptAddresses
- Collection of InternetAddress to be addedpublic MessagePriority getImportance()
public void setImportance(MessagePriority importance)
importance
- MessagePriority to be set.public void addAttachment(EmailAttachment attachment)
attachment
- EmailAttachment to be addedpublic void addAttachments(Collection<? extends EmailAttachment> attachments)
attachments
- Collection of EmailAttachmentpublic List<EmailAttachment> getAttachments()
public void setAttachments(List<EmailAttachment> attachments)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |