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
public abstract class AbstractMessage extends AbstractEntity implements Message
Abstract MIME message.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.james.mime4j.dom.Message
Message.Builder
-
-
Constructor Summary
Constructors Constructor Description AbstractMessage()
-
Method Summary
All Methods Instance Methods Concrete 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.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.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.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 class org.apache.james.mime4j.message.AbstractEntity
calcCharset, calcMimeType, calcTransferEncoding, dispose, getBody, getCharset, getContentTransferEncoding, getDispositionType, getFilename, getHeader, getMimeType, getParent, isMultipart, 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
-
-
-
-
Method Detail
-
getMessageId
public String 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
public String 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
public Date getDate()
Returns the value of the Date header field of this message asDate
object ornull
if it is not present.
-
getSender
public Mailbox getSender()
Returns the value of the Sender header field of this message asMailbox
object ornull
if it is not present.
-
getFrom
public MailboxList getFrom()
Returns the value of the From header field of this message asMailboxList
object ornull
if it is not present.
-
getTo
public AddressList getTo()
Returns the value of the To header field of this message asAddressList
object ornull
if it is not present.
-
getCc
public AddressList getCc()
Returns the value of the Cc header field of this message asAddressList
object ornull
if it is not present.
-
getBcc
public AddressList getBcc()
Returns the value of the Bcc header field of this message asAddressList
object ornull
if it is not present.
-
getReplyTo
public AddressList 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.
-
-