public interface Message extends Entity, Body
Modifier and Type | Interface and Description |
---|---|
static class |
Message.Builder |
Modifier and Type | Method and Description |
---|---|
AddressList |
getBcc()
Returns the value of the Bcc header field of this message as
AddressList object or null if it is not
present. |
AddressList |
getCc()
Returns the value of the Cc header field of this message as
AddressList object or null if it is not
present. |
Date |
getDate()
Returns the value of the Date header field of this message as
Date object or null if it is not present. |
MailboxList |
getFrom()
Returns the value of the From header field of this message as
MailboxList object or null if it is not
present. |
String |
getMessageId()
Returns the value of the Message-ID header field of this message
or
null if it is not present. |
AddressList |
getReplyTo()
Returns the value of the Reply-To header field of this message as
AddressList object or null if it is not
present. |
Mailbox |
getSender()
Returns the value of the Sender header field of this message as
Mailbox object or null if it is not
present. |
String |
getSubject()
Returns the (decoded) value of the Subject header field of this
message or
null if it is not present. |
AddressList |
getTo()
Returns the value of the To header field of this message as
AddressList object or null if it is not
present. |
getBody, getCharset, getContentTransferEncoding, getDispositionType, getFilename, getHeader, getMimeType, getParent, isMultipart, removeBody, setBody, setHeader, setParent
dispose
String getMessageId()
null
if it is not present.String getSubject()
null
if it is not present.Date getDate()
Date
object or null
if it is not present.Mailbox getSender()
Mailbox
object or null
if it is not
present.MailboxList getFrom()
MailboxList
object or null
if it is not
present.AddressList getTo()
AddressList
object or null
if it is not
present.AddressList getCc()
AddressList
object or null
if it is not
present.AddressList getBcc()
AddressList
object or null
if it is not
present.AddressList getReplyTo()
AddressList
object or null
if it is not
present.Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.