Package org.apache.james.mime4j.message
Class AbstractMessage
java.lang.Object
org.apache.james.mime4j.message.AbstractEntity
org.apache.james.mime4j.message.AbstractMessage
- All Implemented Interfaces:
Body
,Disposable
,Entity
,Message
- Direct Known Subclasses:
MessageImpl
Abstract MIME message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.james.mime4j.dom.Message
Message.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate AddressList
getAddressList
(String fieldName) getBcc()
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.private Mailbox
getMailbox
(String fieldName) private MailboxList
getMailboxList
(String fieldName) 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 class org.apache.james.mime4j.message.AbstractEntity
calcCharset, calcMimeType, calcTransferEncoding, dispose, getBody, getCharset, getContentTransferEncoding, getDispositionType, getFilename, getHeader, getMimeType, getParent, isMultipart, obtainField, obtainHeader, removeBody, setBody, setHeader, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
Constructor Details
-
AbstractMessage
public AbstractMessage()
-
-
Method Details
-
getMessageId
Returns the value of the Message-ID header field of this message ornull
if it is not present.- Specified by:
getMessageId
in interfaceMessage
- Returns:
- the identifier of this message.
-
getSubject
Returns the (decoded) value of the Subject header field of this message ornull
if it is not present.- Specified by:
getSubject
in interfaceMessage
- Returns:
- the subject of this message.
-
getDate
Returns the value of the Date header field of this message asDate
object ornull
if it is not present. -
getSender
Returns the value of the Sender header field of this message asMailbox
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. -
getTo
Returns the value of the To 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. -
getBcc
Returns the value of the Bcc header field of this message asAddressList
object ornull
if it is not present. -
getReplyTo
Returns the value of the Reply-To header field of this message asAddressList
object ornull
if it is not present.- Specified by:
getReplyTo
in interfaceMessage
- Returns:
- value of the reply to field of this message.
-
getMailbox
-
getMailboxList
-
getAddressList
-