Package org.apache.james.mime4j.dom
Interface Message
- All Superinterfaces:
Body
,Disposable
,Entity
- All Known Implementing Classes:
AbstractMessage
,MessageImpl
An MIME message (as defined in RFC 2045).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetBcc()
Returns the value of the Bcc header field of this message asAddressList
object ornull
if it is not present.getCc()
Returns the value of the Cc header field of this message asAddressList
object ornull
if it is not present.getDate()
Returns the value of the Date header field of this message asDate
object ornull
if it is not present.getFrom()
Returns the value of the From header field of this message asMailboxList
object ornull
if it is not present.Returns the value of the Message-ID header field of this message ornull
if it is not present.Returns the value of the Reply-To header field of this message asAddressList
object ornull
if it is not present.Returns the value of the Sender header field of this message asMailbox
object ornull
if it is not present.Returns the (decoded) value of the Subject header field of this message ornull
if it is not present.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 Details
-
getMessageId
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
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
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.
-