|
||||||||||
| 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
gnu.mail.providers.ReadOnlyMessage
gnu.mail.providers.maildir.MaildirMessage
public final class MaildirMessage
The message class implementing the Maildir mail protocol.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage |
|---|
MimeMessage.RecipientType |
| Field Summary |
|---|
| Fields inherited from class javax.mail.internet.MimeMessage |
|---|
content, contentStream, dh, flags, headers, modified, saved |
| Fields inherited from class javax.mail.Message |
|---|
expunged, folder, msgnum, session |
| Fields inherited from interface javax.mail.Part |
|---|
ATTACHMENT, INLINE |
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
Enumeration |
getAllHeaderLines()
Returns all the header-lines. |
Enumeration |
getAllHeaders()
Returns all the headers. |
protected InputStream |
getContentStream()
Returns the unencoded bytes of the content. |
DataHandler |
getDataHandler()
Returns a data handler for accessing this message's content. |
String[] |
getHeader(String name)
Returns all the values for the specified header name. |
String |
getHeader(String name,
String delimiter)
Returns all the values for the specified header name as a single string, with headers separated by the given delimiter. |
Enumeration |
getMatchingHeaderLines(String[] names)
Returns all the header-lines with any of the given names. |
Enumeration |
getMatchingHeaders(String[] names)
Returns all the headers with any of the given names. |
Enumeration |
getNonMatchingHeaderLines(String[] names)
Returns all the header-lines without any of the given names. |
Enumeration |
getNonMatchingHeaders(String[] names)
Returns all the headers without any of the given names. |
protected void |
setExpunged(boolean expunged)
Allow MaildirFolder access to set the expunged flag after expunge. |
void |
setFlags(Flags flag,
boolean set)
Set the specified flags(reflected in the info field). |
| Methods inherited from class gnu.mail.providers.ReadOnlyMessage |
|---|
addHeader, addHeaderLine, removeHeader, saveChanges, setContent, setContent, setHeader |
| Methods inherited from class javax.mail.Message |
|---|
addRecipient, getFolder, getMessageNumber, isExpunged, match, setFlag, setMessageNumber, setRecipient |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected void setExpunged(boolean expunged)
setExpunged in class Message
public void setFlags(Flags flag,
boolean set)
throws MessagingException
info field).
setFlags in class gnu.mail.providers.ReadOnlyMessageflag - the flags to be setset - the value to be set
IllegalWriteException - if the underlying implementation
does not support modification of existing values
MessagingException
public String[] getHeader(String name)
throws MessagingException
MimeMessage
getHeader in interface PartgetHeader in class MimeMessagename - the header name
MessagingException
public String getHeader(String name,
String delimiter)
throws MessagingException
MimeMessagenull, only the first header is
returned.
getHeader in interface MimePartgetHeader in class MimeMessagename - the header namedelimiter - the delimiter
MessagingException
public Enumeration getAllHeaders()
throws MessagingException
MimeMessage
getAllHeaders in interface PartgetAllHeaders in class MimeMessageMessagingException
public Enumeration getAllHeaderLines()
throws MessagingException
MimeMessage
getAllHeaderLines in interface MimePartgetAllHeaderLines in class MimeMessageMessagingException
public Enumeration getMatchingHeaders(String[] names)
throws MessagingException
MimeMessage
getMatchingHeaders in interface PartgetMatchingHeaders in class MimeMessagenames - the header names to match
MessagingException
public Enumeration getMatchingHeaderLines(String[] names)
throws MessagingException
MimeMessage
getMatchingHeaderLines in interface MimePartgetMatchingHeaderLines in class MimeMessageMessagingException
public Enumeration getNonMatchingHeaders(String[] names)
throws MessagingException
MimeMessage
getNonMatchingHeaders in interface PartgetNonMatchingHeaders in class MimeMessagenames - the header names to ignore
MessagingException
public Enumeration getNonMatchingHeaderLines(String[] names)
throws MessagingException
MimeMessage
getNonMatchingHeaderLines in interface MimePartgetNonMatchingHeaderLines in class MimeMessageMessagingException
public DataHandler getDataHandler()
throws MessagingException
MimeMessage
getDataHandler in interface PartgetDataHandler in class MimeMessageMessagingException
protected InputStream getContentStream()
throws MessagingException
MimeMessage
getContentStream in class MimeMessageMessagingExceptionMimeBodyPart.getContentStream()public boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||