|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.emailpreview.EmailMessage
public final class EmailMessage
An entity abstraction for representing information related to an email message.
| Constructor Summary | |
|---|---|
EmailMessage(int messageNumber,
Long uid,
String sender,
String subject,
Date sentDate,
boolean unread,
boolean answered,
boolean deleted,
boolean multipart,
String contentType,
EmailMessageContent content)
Creates a new EmailMessage based on the specified
Message and EmailMessageContent. |
|
| Method Summary | |
|---|---|
EmailMessageContent |
getContent()
|
String |
getContentType()
|
int |
getMessageNumber()
|
String |
getSender()
Returns the sender of this email message. |
String |
getSenderName()
|
Date |
getSentDate()
Returns the date the email message was sent or null if the
server did not provide one. |
String |
getSentDateString()
|
String |
getSubject()
Returns the email message subject. |
Long |
getUid()
Returns the UID of the message as set by the Folder or null
if the Folder does not implement UIDFolder. |
boolean |
isAnswered()
|
boolean |
isDeleted()
|
boolean |
isMultipart()
|
boolean |
isUnread()
|
void |
setUnread(boolean unread)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmailMessage(int messageNumber,
Long uid,
String sender,
String subject,
Date sentDate,
boolean unread,
boolean answered,
boolean deleted,
boolean multipart,
String contentType,
EmailMessageContent content)
EmailMessage based on the specified
Message and EmailMessageContent.
| Method Detail |
|---|
public int getMessageNumber()
public Long getUid()
null
if the Folder does not implement UIDFolder.
public Date getSentDate()
null if the
server did not provide one.
null
MessagingExceptionpublic String getSentDateString()
public String getSender()
public String getSenderName()
public String getSubject()
public boolean isUnread()
public void setUnread(boolean unread)
public boolean isAnswered()
public boolean isDeleted()
public boolean isMultipart()
public String getContentType()
null if the content cannot be readpublic EmailMessageContent getContent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||