| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectjavax.mail.Messagejavax.mail.internet.MimeMessagegnu.mail.providers.ReadOnlyMessagegnu.mail.providers.imap.IMAPMessagepublic final class IMAPMessageextends gnu.mail.providers.ReadOnlyMessageNested 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 MessagingExceptionReturns all the header-lines.
- Specified by:
- getAllHeaderLines in interface MimePart
- Overrides:
- getAllHeaderLines in interface MimeMessage
- Returns:
- an Enumeration of Strings
public Enumeration getAllHeaders()
throws MessagingExceptionReturns all the headers.
- Specified by:
- getAllHeaders in interface Part
- Overrides:
- getAllHeaders in interface MimeMessage
- Returns:
- an Enumeration of Header objects
public Object getContent()
throws MessagingException,
IOExceptionReturns this message's content as a Java object.
- Specified by:
- getContent in interface Part
- Overrides:
- getContent in interface MimeMessage
protected InputStream getContentStream()
throws MessagingExceptionReturns the raw content stream.
- Overrides:
- getContentStream in interface MimeMessage
public DataHandler getDataHandler()
throws MessagingExceptionReturns a data handler for this message's content.
- Specified by:
- getDataHandler in interface Part
- Overrides:
- getDataHandler in interface MimeMessage
public Flags getFlags() throws MessagingException
Returns the flags for this message.
- Overrides:
- getFlags in interface MimeMessage
public String[] getHeader(String name)
throws MessagingExceptionReturns the specified header field.
- Overrides:
- getHeader in interface MimeMessage
public String getHeader(String name,
String delimiter)
throws MessagingExceptionReturns the specified header field.
- Overrides:
- getHeader in interface MimeMessage
public Enumeration getMatchingHeaderLines(String[] names)
throws MessagingExceptionReturns all the header-lines with any of the given names.
- Specified by:
- getMatchingHeaderLines in interface MimePart
- Overrides:
- getMatchingHeaderLines in interface MimeMessage
- Returns:
- an Enumeration of Strings
public Enumeration getMatchingHeaders(String[] names)
throws MessagingExceptionReturns all the headers with any of the given names.
- Specified by:
- getMatchingHeaders in interface Part
- Overrides:
- getMatchingHeaders in interface MimeMessage
- Returns:
- an Enumeration of Header objects
public Enumeration getNonMatchingHeaderLines(String[] names)
throws MessagingExceptionReturns all the header-lines without any of the given names.
- Specified by:
- getNonMatchingHeaderLines in interface MimePart
- Overrides:
- getNonMatchingHeaderLines in interface MimeMessage
- Returns:
- an Enumeration of Strings
public Enumeration getNonMatchingHeaders(String[] names)
throws MessagingExceptionReturns all the headers without any of the given names.
- Specified by:
- getNonMatchingHeaders in interface Part
- Overrides:
- getNonMatchingHeaders in interface MimeMessage
- Returns:
- an Enumeration of Header objects
public Date getReceivedDate()
throws MessagingExceptionReturns the date on which this message was received.
- Overrides:
- getReceivedDate in interface MimeMessage
public boolean isSet(Flags.Flag flag) throws MessagingException
Indicates whether the specified flag is set in this message.
- Overrides:
- isSet in interface MimeMessage
- Parameters:
flag- the flag
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,
MessagingExceptionWrites this message to the specified stream in RFC 822 format.
- Overrides:
- writeTo in interface MimeMessage
public void writeTo(OutputStream msgStream,
String[] ignoreList)
throws IOException,
MessagingExceptionWrites this message to the specified stream in RFC 822 format, without the specified headers.
- Overrides:
- writeTo in interface MimeMessage