Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.mail.Message
javax.mail.internet.MimeMessage
gnu.mail.providers.ReadOnlyMessage
gnu.mail.providers.imap.IMAPMessage
public final class IMAPMessage
extends gnu.mail.providers.ReadOnlyMessage
Nested Class Summary |
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage | |
MimeMessage.RecipientType |
Nested classes/interfaces inherited from class javax.mail.Message | |
Message.RecipientType |
Field Summary | |
protected boolean |
|
protected String |
|
protected static DateFormat |
|
protected long |
|
Fields inherited from class javax.mail.internet.MimeMessage | |
content , contentStream , dh , flags , headers , modified , saved |
Fields inherited from interface javax.mail.Part | |
ATTACHMENT , INLINE |
Method Summary | |
Enumeration | |
Enumeration | |
Object | |
protected InputStream |
|
DataHandler |
|
Flags |
|
String[] |
|
String |
|
Enumeration |
|
Enumeration |
|
Enumeration |
|
Enumeration |
|
Date |
|
boolean |
|
void | |
void |
|
void |
|
Methods inherited from class gnu.mail.providers.ReadOnlyMessage | |
addHeader , addHeaderLine , removeHeader , saveChanges , setContent , setContent , setFlags , setHeader |
Methods inherited from class javax.mail.Message | |
addFrom , addRecipient , addRecipients , getAllRecipients , getFlags , getFolder , getFrom , getMessageNumber , getReceivedDate , getRecipients , getReplyTo , getSentDate , getSubject , isExpunged , isSet , match , reply , saveChanges , setExpunged , setFlag , setFlags , setFrom , setFrom , setMessageNumber , setRecipient , setRecipients , setReplyTo , setSentDate , setSubject |
protected boolean headersComplete
If set, the current set of headers is complete. If false, and a header is requested but returns null, all headers will be requested from the server.
protected String internalDate
If set, this contains the string value of the received date.
protected static final DateFormat internalDateFormat
The date format used to parse IMAP INTERNALDATE values.
protected long uid
The UID associated with this message.
public Enumeration getAllHeaderLines() throws MessagingException
- Specified by:
- getAllHeaderLines in interface MimePart
- Overrides:
- getAllHeaderLines in interface MimeMessage
public Enumeration getAllHeaders() throws MessagingException
- Specified by:
- getAllHeaders in interface Part
- Overrides:
- getAllHeaders in interface MimeMessage
public Object getContent() throws MessagingException, IOException
- Specified by:
- getContent in interface Part
- Overrides:
- getContent in interface MimeMessage
protected InputStream getContentStream() throws MessagingException
Returns the raw content stream.
- Overrides:
- getContentStream in interface MimeMessage
public DataHandler getDataHandler() throws MessagingException
Returns a data handler for this message's content.
- Specified by:
- getDataHandler in interface Part
- Overrides:
- getDataHandler in interface MimeMessage
public Flags getFlags() throws MessagingException
- Overrides:
- getFlags in interface MimeMessage
public String[] getHeader(String name) throws MessagingException
Returns the specified header field.
- Overrides:
- getHeader in interface MimeMessage
public String getHeader(String name, String delimiter) throws MessagingException
Returns the specified header field.
- Overrides:
- getHeader in interface MimeMessage
public Enumeration getMatchingHeaderLines(String[] names) throws MessagingException
- Specified by:
- getMatchingHeaderLines in interface MimePart
- Overrides:
- getMatchingHeaderLines in interface MimeMessage
public Enumeration getMatchingHeaders(String[] names) throws MessagingException
- Specified by:
- getMatchingHeaders in interface Part
- Overrides:
- getMatchingHeaders in interface MimeMessage
public Enumeration getNonMatchingHeaderLines(String[] names) throws MessagingException
- Specified by:
- getNonMatchingHeaderLines in interface MimePart
- Overrides:
- getNonMatchingHeaderLines in interface MimeMessage
public Enumeration getNonMatchingHeaders(String[] names) throws MessagingException
- Specified by:
- getNonMatchingHeaders in interface Part
- Overrides:
- getNonMatchingHeaders in interface MimeMessage
public Date getReceivedDate() throws MessagingException
Returns the date on which this message was received.
- Overrides:
- getReceivedDate in interface MimeMessage
public boolean isSet(Flags.Flag flag) throws MessagingException
- Overrides:
- isSet in interface MimeMessage
public void setFlags(Flags flag, boolean set) throws MessagingException
Set the specified flags.
- Overrides:
- setFlags in interface gnu.mail.providers.ReadOnlyMessage
public void writeTo(OutputStream msgStream) throws IOException, MessagingException
- Overrides:
- writeTo in interface MimeMessage
public void writeTo(OutputStream msgStream, String[] ignoreList) throws IOException, MessagingException
- Overrides:
- writeTo in interface MimeMessage