Package org.apache.james.mime4j.dom
Interface Message
-
- All Superinterfaces:
Body
,Disposable
,Entity
- All Known Implementing Classes:
AbstractMessage
,MessageImpl
public interface Message extends Entity, Body
An MIME message (as defined in RFC 2045).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Message.Builder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AddressList
getBcc()
Returns the value of the Bcc header field of this message asAddressList
object ornull
if it is not present.AddressList
getCc()
Returns the value of the Cc header field of this message asAddressList
object ornull
if it is not present.java.util.Date
getDate()
Returns the value of the Date header field of this message asDate
object ornull
if it is not present.MailboxList
getFrom()
Returns the value of the From header field of this message asMailboxList
object ornull
if it is not present.java.lang.String
getMessageId()
Returns the value of the Message-ID header field of this message ornull
if it is not present.AddressList
getReplyTo()
Returns the value of the Reply-To header field of this message asAddressList
object ornull
if it is not present.Mailbox
getSender()
Returns the value of the Sender header field of this message asMailbox
object ornull
if it is not present.java.lang.String
getSubject()
Returns the (decoded) value of the Subject header field of this message ornull
if it is not present.AddressList
getTo()
Returns the value of the To header field of this message asAddressList
object ornull
if it is not present.-
Methods inherited from interface org.apache.james.mime4j.dom.Disposable
dispose
-
Methods inherited from interface org.apache.james.mime4j.dom.Entity
getBody, getCharset, getContentTransferEncoding, getDispositionType, getFilename, getHeader, getMimeType, getParent, isMultipart, removeBody, setBody, setHeader, setParent
-
-
-
-
Method Detail
-
getMessageId
java.lang.String getMessageId()
Returns the value of the Message-ID header field of this message ornull
if it is not present.- Returns:
- the identifier of this message.
-
getSubject
java.lang.String getSubject()
Returns the (decoded) value of the Subject header field of this message ornull
if it is not present.- Returns:
- the subject of this message.
-
getDate
java.util.Date getDate()
Returns the value of the Date header field of this message asDate
object ornull
if it is not present.- Returns:
- the date of this message.
-
getSender
Mailbox getSender()
Returns the value of the Sender header field of this message asMailbox
object ornull
if it is not present.- Returns:
- the sender of this message.
-
getFrom
MailboxList getFrom()
Returns the value of the From header field of this message asMailboxList
object ornull
if it is not present.- Returns:
- value of the from field of this message.
-
getTo
AddressList getTo()
Returns the value of the To header field of this message asAddressList
object ornull
if it is not present.- Returns:
- value of the to field of this message.
-
getCc
AddressList getCc()
Returns the value of the Cc header field of this message asAddressList
object ornull
if it is not present.- Returns:
- value of the cc field of this message.
-
getBcc
AddressList getBcc()
Returns the value of the Bcc header field of this message asAddressList
object ornull
if it is not present.- Returns:
- value of the bcc field of this message.
-
getReplyTo
AddressList getReplyTo()
Returns the value of the Reply-To header field of this message asAddressList
object ornull
if it is not present.- Returns:
- value of the reply to field of this message.
-
-