MimeMessage.RecipientType
cachedContent, content, contentStream, dh, flags, headers, modified, saved
ATTACHMENT, INLINE
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration |
getAllHeaderLines()
Causes the headers to be read.
|
java.util.Enumeration |
getAllHeaders()
Causes the headers to be read.
|
protected java.io.InputStream |
getContentStream()
Causes the content to be read in.
|
javax.activation.DataHandler |
getDataHandler()
Causes the content to be read in.
|
java.lang.String[] |
getHeader(java.lang.String name)
Causes the headers to be read.
|
java.lang.String |
getHeader(java.lang.String name,
java.lang.String delimiter)
Causes the headers to be read.
|
java.util.Enumeration |
getMatchingHeaderLines(java.lang.String[] names)
Causes the headers to be read.
|
java.util.Enumeration |
getMatchingHeaders(java.lang.String[] names)
Causes the headers to be read.
|
java.util.Enumeration |
getNonMatchingHeaderLines(java.lang.String[] names)
Causes the headers to be read.
|
java.util.Enumeration |
getNonMatchingHeaders(java.lang.String[] names)
Causes the headers to be read.
|
int |
getSize()
Gets the size of the message.
|
java.lang.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(java.io.OutputStream msgStream)
Writes this message to the specified stream in RFC 822 format.
|
void |
writeTo(java.io.OutputStream msgStream,
java.lang.String[] ignoreList)
Writes this message to the specified stream in RFC 822 format, without
the specified headers.
|
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, 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
addRecipient, getFolder, getMessageNumber, getSession, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient
public javax.activation.DataHandler getDataHandler() throws MessagingException
getDataHandler
in interface Part
getDataHandler
in class MimeMessage
MessagingException
protected java.io.InputStream getContentStream() throws MessagingException
getContentStream
in class MimeMessage
MessagingException
MimeBodyPart.getContentStream()
public int getSize() throws MessagingException
getSize
in interface Part
getSize
in class MimeMessage
MessagingException
public java.lang.String[] getHeader(java.lang.String name) throws MessagingException
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
getHeader
in interface MimePart
getHeader
in class MimeMessage
name
- the header namedelimiter
- the delimiterMessagingException
public java.util.Enumeration getAllHeaders() throws MessagingException
getAllHeaders
in interface Part
getAllHeaders
in class MimeMessage
MessagingException
public java.util.Enumeration getAllHeaderLines() throws MessagingException
getAllHeaderLines
in interface MimePart
getAllHeaderLines
in class MimeMessage
MessagingException
public java.util.Enumeration getMatchingHeaders(java.lang.String[] names) throws MessagingException
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
getMatchingHeaderLines
in interface MimePart
getMatchingHeaderLines
in class MimeMessage
MessagingException
public java.util.Enumeration getNonMatchingHeaders(java.lang.String[] names) throws MessagingException
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
getNonMatchingHeaderLines
in interface MimePart
getNonMatchingHeaderLines
in class MimeMessage
MessagingException
public void writeTo(java.io.OutputStream msgStream) throws java.io.IOException, MessagingException
MimeMessage
writeTo
in interface Part
writeTo
in class MimeMessage
java.io.IOException
- if an error occurs writing to the stream or in
the data handler layerMessagingException
- if an error occurs fetching the data
to be writtenpublic void writeTo(java.io.OutputStream msgStream, java.lang.String[] ignoreList) throws java.io.IOException, MessagingException
MimeMessage
writeTo
in class MimeMessage
java.io.IOException
- if an error occurs writing to the stream or in
the data handler layerMessagingException
public java.lang.String getUID() throws MessagingException
MessagingException
public void setFlags(Flags flags, boolean set) throws MessagingException
setFlags
in class gnu.mail.providers.ReadOnlyMessage
flags
- the flags to be setset
- the value to be setIllegalWriteException
- if the underlying implementation
does not support modification of existing valuesMessagingException