public abstract class AbstractMessage extends AbstractEntity implements Message
Message.Builder
Constructor and Description |
---|
AbstractMessage() |
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. |
calcCharset, calcMimeType, calcTransferEncoding, dispose, getBody, getCharset, getContentTransferEncoding, getDispositionType, getFilename, getHeader, getMimeType, getParent, isMultipart, removeBody, setBody, setHeader, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBody, getCharset, getContentTransferEncoding, getDispositionType, getFilename, getHeader, getMimeType, getParent, isMultipart, removeBody, setBody, setHeader, setParent
dispose
public String getMessageId()
null
if it is not present.getMessageId
in interface Message
public String getSubject()
null
if it is not present.getSubject
in interface Message
public Date getDate()
Date
object or null
if it is not present.public Mailbox getSender()
Mailbox
object or null
if it is not
present.public MailboxList getFrom()
MailboxList
object or null
if it is not
present.public AddressList getTo()
AddressList
object or null
if it is not
present.public AddressList getCc()
AddressList
object or null
if it is not
present.public AddressList getBcc()
AddressList
object or null
if it is not
present.public AddressList getReplyTo()
AddressList
object or null
if it is not
present.getReplyTo
in interface Message
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.