|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidaddemo.email.MessageData
public class MessageData
MessageData contains all the information needed to display a UI for a javax.mail.Message object. There are methods to get the sender, the subject, the size, the date, the to list, the cc list, the content type, the content itself, and the line count of the message.
| Constructor Summary | |
|---|---|
MessageData(javax.mail.Message message)
Create a new MessageData object given the message object. |
|
| Method Summary | |
|---|---|
List<javax.mail.BodyPart> |
getAttachments()
Get the list of attachments. |
javax.mail.Address[] |
getCcs()
Get an array of Address objects that correspond to the list of addresses the message was cc'd to. |
Object |
getContent()
Get an object representing the content type of the message. |
String |
getContentType()
Get a string representing the content type of the message. |
int |
getLineCount()
Get the number of lines in the message. |
javax.mail.Message |
getMessage()
Get the underlying Message Object. |
int |
getMessageNumber()
Get the number of the message in its containing folder. |
javax.mail.Address |
getSender()
Get the Address object that corresponds to the sender |
Date |
getSentDate()
Get the sent date of the message. |
int |
getSize()
Get the size of the message in kilobytes. |
String |
getSubject()
Get the subject of the message. |
javax.mail.Address[] |
getTos()
Get an array of Address objects that correspond to the list of addresses the message was sent to. |
boolean |
isAttachmentPresent()
Returns true if any attachments are available. |
boolean |
isDeleted()
Return true if the message has been deleted. |
boolean |
isRead()
Return true if the message has been read yet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageData(javax.mail.Message message)
throws javax.mail.MessagingException
javax.mail.MessagingException| Method Detail |
|---|
public int getMessageNumber()
public javax.mail.Address getSender()
throws javax.mail.MessagingException
javax.mail.MessagingException
public String getSubject()
throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic int getSize()
public Date getSentDate()
throws javax.mail.MessagingException
javax.mail.MessagingException
public javax.mail.Address[] getTos()
throws javax.mail.MessagingException
javax.mail.MessagingException
public javax.mail.Address[] getCcs()
throws javax.mail.MessagingException
javax.mail.MessagingException
public String getContentType()
throws javax.mail.MessagingException
javax.mail.MessagingException
public Object getContent()
throws javax.mail.MessagingException,
IOException
javax.mail.MessagingException
IOException
public int getLineCount()
throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic boolean isRead()
public boolean isDeleted()
public javax.mail.Message getMessage()
public List<javax.mail.BodyPart> getAttachments()
public boolean isAttachmentPresent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||