|
||||||||||
| 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.pop3.POP3Message
public final class POP3Message
The message class implementing the POP3 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 | |
|---|---|
Enumeration |
getAllHeaderLines()
Causes the headers to be read. |
Enumeration |
getAllHeaders()
Causes the headers to be read. |
protected InputStream |
getContentStream()
Causes the content to be read in. |
DataHandler |
getDataHandler()
Causes the content to be read in. |
String[] |
getHeader(String name)
Causes the headers to be read. |
String |
getHeader(String name,
String delimiter)
Causes the headers to be read. |
Enumeration |
getMatchingHeaderLines(String[] names)
Causes the headers to be read. |
Enumeration |
getMatchingHeaders(String[] names)
Causes the headers to be read. |
Enumeration |
getNonMatchingHeaderLines(String[] names)
Causes the headers to be read. |
Enumeration |
getNonMatchingHeaders(String[] names)
Causes the headers to be read. |
int |
getSize()
Gets the size of the message. |
String |
getUID()
Returns the unique ID for this message. |
void |
setFlags(Flags flags,
boolean set)
Set flags (but only DELETED is supported) add or remove the message from the folder deleted message list. |
void |
writeTo(OutputStream msgStream)
Writes this message to the specified stream in RFC 822 format. |
void |
writeTo(OutputStream msgStream,
String[] ignoreList)
Writes this message to the specified stream in RFC 822 format, without the specified headers. |
| 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, setExpunged, setFlag, setMessageNumber, setRecipient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public DataHandler getDataHandler()
throws MessagingException
getDataHandler in interface PartgetDataHandler in class MimeMessageMessagingException
protected InputStream getContentStream()
throws MessagingException
getContentStream in class MimeMessageMessagingExceptionMimeBodyPart.getContentStream()
public int getSize()
throws MessagingException
getSize in interface PartgetSize in class MimeMessageMessagingException
public String[] getHeader(String name)
throws MessagingException
getHeader in interface PartgetHeader in class MimeMessagename - the header name
MessagingException
public String getHeader(String name,
String delimiter)
throws MessagingException
getHeader in interface MimePartgetHeader in class MimeMessagename - the header namedelimiter - the delimiter
MessagingException
public Enumeration getAllHeaders()
throws MessagingException
getAllHeaders in interface PartgetAllHeaders in class MimeMessageMessagingException
public Enumeration getAllHeaderLines()
throws MessagingException
getAllHeaderLines in interface MimePartgetAllHeaderLines in class MimeMessageMessagingException
public Enumeration getMatchingHeaders(String[] names)
throws MessagingException
getMatchingHeaders in interface PartgetMatchingHeaders in class MimeMessagenames - the header names to match
MessagingException
public Enumeration getMatchingHeaderLines(String[] names)
throws MessagingException
getMatchingHeaderLines in interface MimePartgetMatchingHeaderLines in class MimeMessageMessagingException
public Enumeration getNonMatchingHeaders(String[] names)
throws MessagingException
getNonMatchingHeaders in interface PartgetNonMatchingHeaders in class MimeMessagenames - the header names to ignore
MessagingException
public Enumeration getNonMatchingHeaderLines(String[] names)
throws MessagingException
getNonMatchingHeaderLines in interface MimePartgetNonMatchingHeaderLines in class MimeMessageMessagingException
public void writeTo(OutputStream msgStream)
throws IOException,
MessagingException
MimeMessage
writeTo in interface PartwriteTo in class MimeMessageIOException - if an error occurs writing to the stream or in
the data handler layer
MessagingException - if an error occurs fetching the data
to be written
public void writeTo(OutputStream msgStream,
String[] ignoreList)
throws IOException,
MessagingException
MimeMessage
writeTo in class MimeMessageIOException - if an error occurs writing to the stream or in
the data handler layer
MessagingException
public String getUID()
throws MessagingException
MessagingException
public void setFlags(Flags flags,
boolean set)
throws MessagingException
setFlags in class gnu.mail.providers.ReadOnlyMessageflags - the flags to be setset - the value to be set
IllegalWriteException - if the underlying implementation
does not support modification of existing values
MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||