|
||||||||||
| 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<EmailAttachment> attachments)
Adds a Collection of EmailAttachment to the EmailMessage |
void |
addBccAddress(javax.mail.internet.InternetAddress bccAddress)
Adds a single InternetAddress to the BCC addresses on the EmailMessage |
void |
addBccAddresses(Collection<javax.mail.internet.InternetAddress> bccAddresses)
Adds a Collection of InternetAddress to the BCC addresses on the |
void |
addCcAddress(javax.mail.internet.InternetAddress ccAddress)
Adds a single InternetAddress to the CC addresses on the EmailMessage |
void |
addCcAddresses(Collection<javax.mail.internet.InternetAddress> ccAddresses)
Adds a Collection of InternetAddress to the CC addresses on the |
void |
addDeliveryReceiptAddress(javax.mail.internet.InternetAddress address)
Adds a InternetAddress as a Delivery Receipt address |
void |
addDeliveryReceiptAddresses(Collection<javax.mail.internet.InternetAddress> deliveryReceiptAddresses)
Adds a Collection of InternetAddress as a Delivery Receipt address |
void |
addFromAddress(javax.mail.internet.InternetAddress fromAddress)
Adds a single InternetAddress to the FROM addresses on the EmailMessage |
void |
addFromAddresses(Collection<javax.mail.internet.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(javax.mail.internet.InternetAddress address)
Adds a InternetAddress as a Read Receipt address |
void |
addReadReceiptAddresses(Collection<javax.mail.internet.InternetAddress> readReceiptAddresses)
Adds a Collection of InternetAddress as a Read Receipt address |
void |
addReplyToAddress(javax.mail.internet.InternetAddress replyToAddress)
Adds a single InternetAddress to the REPLY-TO addresses on the EmailMessage |
void |
addReplyToAddresses(Collection<javax.mail.internet.InternetAddress> replyToAddresses)
Adds a Collection of InternetAddress to the REPLY-TO addresses on the |
void |
addToAddress(javax.mail.internet.InternetAddress toAddress)
Adds a single InternetAddress to the TO addresses on the EmailMessage |
void |
addToAddresses(Collection<javax.mail.internet.InternetAddress> toAddresses)
Adds a Collection of InternetAddress to the TO addresses on the |
Collection<EmailAttachment> |
getAttachments()
Gets a Collection representing all the Attachments on the EmailMessage |
Collection<javax.mail.internet.InternetAddress> |
getBccAddresses()
Get the Collection of BCC addresses on the EmailMeassage |
Collection<javax.mail.internet.InternetAddress> |
getCcAddresses()
Get the Collection of CC addresses on the EmailMeassage |
Collection<javax.mail.internet.InternetAddress> |
getDeliveryReceiptAddresses()
Get the collection of InternetAddress which are Delivery Reciept addresses |
Collection<javax.mail.internet.InternetAddress> |
getFromAddresses()
Get the Collection of FROM addresses on the EmailMeassage |
Collection<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. |
Collection<javax.mail.internet.InternetAddress> |
getReadReceiptAddresses()
Get the collection of InternetAddress which are Read Receipt addresses |
Collection<javax.mail.internet.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 |
Collection<javax.mail.internet.InternetAddress> |
getToAddresses()
Get the Collection of TO addresses on the EmailMeassage |
EmailMessageType |
getType()
Get the current EmailMessageType of the EmailMessage |
boolean |
removeBccAddress(javax.mail.internet.InternetAddress bccAddress)
Remove an InternetAddress from the BCC addressses |
boolean |
removeCcAddress(javax.mail.internet.InternetAddress ccAddress)
Remove an InternetAddress from the CC addressses |
boolean |
removeToAddress(javax.mail.internet.InternetAddress toAddress)
Remove an InternetAddress from the TO addressses |
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 |
setRootContentType(ContentType rootContentType)
Set the Root Mime SubType 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 |
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)
rootSubType - 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 Collection<javax.mail.internet.InternetAddress> getFromAddresses()
public void addFromAddress(javax.mail.internet.InternetAddress fromAddress)
fromAddress - public void addFromAddresses(Collection<javax.mail.internet.InternetAddress> fromAddresses)
fromAddresses - public Collection<javax.mail.internet.InternetAddress> getReplyToAddresses()
public void addReplyToAddress(javax.mail.internet.InternetAddress replyToAddress)
replyToAddress - InternetAddress to setpublic void addReplyToAddresses(Collection<javax.mail.internet.InternetAddress> replyToAddresses)
replyToAddresses - Collection of InternetAddress to addpublic Collection<javax.mail.internet.InternetAddress> getToAddresses()
public void addToAddress(javax.mail.internet.InternetAddress toAddress)
toAddress - InternetAddress to setpublic void addToAddresses(Collection<javax.mail.internet.InternetAddress> toAddresses)
toAddresses - Collection of InternetAddress to addpublic boolean removeToAddress(javax.mail.internet.InternetAddress toAddress)
toAddress -
public Collection<javax.mail.internet.InternetAddress> getCcAddresses()
public void addCcAddress(javax.mail.internet.InternetAddress ccAddress)
ccAddress - InternetAddress to setpublic void addCcAddresses(Collection<javax.mail.internet.InternetAddress> ccAddresses)
ccAddresses - Collection of InternetAddress to addpublic boolean removeCcAddress(javax.mail.internet.InternetAddress ccAddress)
ccAddress -
public Collection<javax.mail.internet.InternetAddress> getBccAddresses()
public void addBccAddress(javax.mail.internet.InternetAddress bccAddress)
bccAddress - InternetAddress to setpublic void addBccAddresses(Collection<javax.mail.internet.InternetAddress> bccAddresses)
bccAddresses - Collection of InternetAddress to addpublic boolean removeBccAddress(javax.mail.internet.InternetAddress bccAddress)
bccAddress -
public Collection<Header> getHeaders()
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 Collection<javax.mail.internet.InternetAddress> getDeliveryReceiptAddresses()
public void addDeliveryReceiptAddress(javax.mail.internet.InternetAddress address)
address - InternetAddress to be addedpublic void addDeliveryReceiptAddresses(Collection<javax.mail.internet.InternetAddress> deliveryReceiptAddresses)
deliveryReceiptAddresses - Collection of InternetAddress to be addedpublic Collection<javax.mail.internet.InternetAddress> getReadReceiptAddresses()
public void addReadReceiptAddress(javax.mail.internet.InternetAddress address)
address - InternetAddress to be addedpublic void addReadReceiptAddresses(Collection<javax.mail.internet.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<EmailAttachment> attachments)
attachments - Collection of EmailAttachmentpublic Collection<EmailAttachment> getAttachments()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||