|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.Message
javax.mail.internet.MimeMessage
com.openexchange.mail.mime.ExtendedMimeMessage
public final class ExtendedMimeMessage
ExtendedMimeMessage - Extends MimeMessage by some additional attributes to store message information such as its UID.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage |
|---|
javax.mail.internet.MimeMessage.RecipientType |
| Field Summary |
|---|
| Fields inherited from interface javax.mail.Part |
|---|
ATTACHMENT, INLINE |
| Constructor Summary | |
|---|---|
ExtendedMimeMessage(java.lang.String fullname,
char separator,
int msgnum)
Initializes a new ExtendedMimeMessage |
|
| Method Summary | |
|---|---|
com.sun.mail.imap.protocol.BODYSTRUCTURE |
getBodystructure()
Gets the body structure. |
java.lang.String |
getContentType()
|
java.lang.String |
getFullname()
Gets this message's folder fullname |
int |
getPriority()
Gets the priority |
java.util.Date |
getReceivedDate()
|
char |
getSeparator()
Gets this message's folder separator |
int |
getSize()
|
int |
getThreadLevel()
Gets the thread level |
long |
getUid()
Gets the UID |
boolean |
hasAttachment()
The flag if this message has attachments |
void |
parseStream(java.io.InputStream in)
Parse the input stream: setting the headers and content fields appropriately. |
void |
setBodystructure(com.sun.mail.imap.protocol.BODYSTRUCTURE bodystructure)
Sets the body structure. |
void |
setContentType(ContentType contentType)
Sets the content type |
void |
setHasAttachment(boolean hasAttachment)
Sets the flag if this message has attachments |
void |
setPriority(int priority)
Sets the priority |
void |
setReceivedDate(java.util.Date receivedDate)
Sets the received date |
void |
setSize(int size)
Sets the size |
void |
setThreadLevel(int threadLevel)
Sets the thread level |
void |
setUid(long uid)
Sets the UID |
| Methods inherited from class javax.mail.internet.MimeMessage |
|---|
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getRecipients, getReplyTo, getSender, getSentDate, getSubject, isMimeType, isSet, removeHeader, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, writeTo, writeTo |
| Methods inherited from class javax.mail.Message |
|---|
addRecipient, getFolder, getMessageNumber, isExpunged, match, setFlag, setRecipient |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedMimeMessage(java.lang.String fullname,
char separator,
int msgnum)
ExtendedMimeMessage
fullname - The folder fullnameseparator - The folder separator charactermsgnum - The message number in folder| Method Detail |
|---|
public void parseStream(java.io.InputStream in)
throws javax.mail.MessagingException
in - The input stream
javax.mail.MessagingException - If parsing the input stream failspublic java.lang.String getFullname()
public char getSeparator()
public boolean hasAttachment()
true if this message has attachments; otherwise falsepublic void setHasAttachment(boolean hasAttachment)
hasAttachment - true to mark this message to hold attachments; otherwise falsepublic int getThreadLevel()
public void setThreadLevel(int threadLevel)
threadLevel - the thread level to setpublic com.sun.mail.imap.protocol.BODYSTRUCTURE getBodystructure()
This attribute is only available if underlying mail system as an IMAP server and fetch item BODYSTRUCTURE has been requested.
By now this attribute is only used to detect if message contains (file) attachment(s) in a more precise manner.
public void setBodystructure(com.sun.mail.imap.protocol.BODYSTRUCTURE bodystructure)
This attribute can only be set if underlying mail system as an IMAP server and fetch item BODYSTRUCTURE has been requested.
By now this attribute is only used to detect if message contains (file) attachment(s) in a more precise manner.
bodystructure - The body structure to setpublic int getPriority()
public void setPriority(int priority)
priority - The priority to setpublic java.util.Date getReceivedDate()
getReceivedDate in class javax.mail.internet.MimeMessagepublic void setReceivedDate(java.util.Date receivedDate)
receivedDate - the received date to setpublic int getSize()
getSize in interface javax.mail.PartgetSize in class javax.mail.internet.MimeMessagepublic void setSize(int size)
size - the size to setpublic java.lang.String getContentType()
getContentType in interface javax.mail.PartgetContentType in class javax.mail.internet.MimeMessagepublic void setContentType(ContentType contentType)
contentType - the content type to setpublic long getUid()
public void setUid(long uid)
uid - The UID to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||