MimeMessage.RecipientType
cachedContent, content, contentStream, dh, flags, headers, modified, saved
ATTACHMENT, INLINE
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.util.Enumeration |
getAllHeaderLines()
Returns all the header-lines.
|
java.util.Enumeration |
getAllHeaders()
Returns all the headers.
|
protected java.io.InputStream |
getContentStream()
Returns the unencoded bytes of the content.
|
javax.activation.DataHandler |
getDataHandler()
Returns a data handler for accessing this message's content.
|
java.lang.String[] |
getHeader(java.lang.String name)
Returns all the values for the specified header name.
|
java.lang.String |
getHeader(java.lang.String name,
java.lang.String delimiter)
Returns all the values for the specified header name as a single
string, with headers separated by the given delimiter.
|
java.util.Enumeration |
getMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines with any of the given names.
|
java.util.Enumeration |
getMatchingHeaders(java.lang.String[] names)
Returns all the headers with any of the given names.
|
java.util.Enumeration |
getNonMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines without any of the given names.
|
java.util.Enumeration |
getNonMatchingHeaders(java.lang.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). |
addHeader, addHeaderLine, removeHeader, saveChanges, setContent, setContent, setHeader
addFrom, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentType, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getInputStream, getLineCount, getMessageID, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, reply, reply, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFrom, setFrom, setFrom, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, updateMessageId, writeTo, writeTo
addRecipient, getFolder, getMessageNumber, getSession, isExpunged, match, setFlag, setMessageNumber, setRecipient
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.ReadOnlyMessage
flag
- the flags to be setset
- the value to be setIllegalWriteException
- if the underlying implementation
does not support modification of existing valuesMessagingException
public java.lang.String[] getHeader(java.lang.String name) throws MessagingException
MimeMessage
getHeader
in interface Part
getHeader
in class MimeMessage
name
- the header nameMessagingException
public java.lang.String getHeader(java.lang.String name, java.lang.String delimiter) throws MessagingException
MimeMessage
null
, only the first header is
returned.getHeader
in interface MimePart
getHeader
in class MimeMessage
name
- the header namedelimiter
- the delimiterMessagingException
public java.util.Enumeration getAllHeaders() throws MessagingException
MimeMessage
getAllHeaders
in interface Part
getAllHeaders
in class MimeMessage
MessagingException
public java.util.Enumeration getAllHeaderLines() throws MessagingException
MimeMessage
getAllHeaderLines
in interface MimePart
getAllHeaderLines
in class MimeMessage
MessagingException
public java.util.Enumeration getMatchingHeaders(java.lang.String[] names) throws MessagingException
MimeMessage
getMatchingHeaders
in interface Part
getMatchingHeaders
in class MimeMessage
names
- the header names to matchMessagingException
public java.util.Enumeration getMatchingHeaderLines(java.lang.String[] names) throws MessagingException
MimeMessage
getMatchingHeaderLines
in interface MimePart
getMatchingHeaderLines
in class MimeMessage
MessagingException
public java.util.Enumeration getNonMatchingHeaders(java.lang.String[] names) throws MessagingException
MimeMessage
getNonMatchingHeaders
in interface Part
getNonMatchingHeaders
in class MimeMessage
names
- the header names to ignoreMessagingException
public java.util.Enumeration getNonMatchingHeaderLines(java.lang.String[] names) throws MessagingException
MimeMessage
getNonMatchingHeaderLines
in interface MimePart
getNonMatchingHeaderLines
in class MimeMessage
MessagingException
public javax.activation.DataHandler getDataHandler() throws MessagingException
MimeMessage
getDataHandler
in interface Part
getDataHandler
in class MimeMessage
MessagingException
protected java.io.InputStream getContentStream() throws MessagingException
MimeMessage
getContentStream
in class MimeMessage
MessagingException
MimeBodyPart.getContentStream()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object