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 private AddressListgetAddressList(java.lang.String fieldName)AddressListgetBcc()Returns the value of the Bcc header field of this message asAddressListobject ornullif it is not present.AddressListgetCc()Returns the value of the Cc header field of this message asAddressListobject ornullif it is not present.java.util.DategetDate()Returns the value of the Date header field of this message asDateobject ornullif it is not present.MailboxListgetFrom()Returns the value of the From header field of this message asMailboxListobject ornullif it is not present.private MailboxgetMailbox(java.lang.String fieldName)private MailboxListgetMailboxList(java.lang.String fieldName)java.lang.StringgetMessageId()Returns the value of the Message-ID header field of this message ornullif it is not present.AddressListgetReplyTo()Returns the value of the Reply-To header field of this message asAddressListobject ornullif it is not present.MailboxgetSender()Returns the value of the Sender header field of this message asMailboxobject ornullif it is not present.java.lang.StringgetSubject()Returns the (decoded) value of the Subject header field of this message ornullif it is not present.AddressListgetTo()Returns the value of the To header field of this message asAddressListobject ornullif 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
-
-
-
-
Method Detail
-
getMessageId
public java.lang.String getMessageId()
Returns the value of the Message-ID header field of this message ornullif it is not present.- Specified by:
getMessageIdin interfaceMessage- Returns:
- the identifier of this message.
-
getSubject
public java.lang.String getSubject()
Returns the (decoded) value of the Subject header field of this message ornullif it is not present.- Specified by:
getSubjectin interfaceMessage- Returns:
- the subject of this message.
-
getDate
public java.util.Date getDate()
Returns the value of the Date header field of this message asDateobject ornullif it is not present.
-
getSender
public Mailbox getSender()
Returns the value of the Sender header field of this message asMailboxobject ornullif it is not present.
-
getFrom
public MailboxList getFrom()
Returns the value of the From header field of this message asMailboxListobject ornullif it is not present.
-
getTo
public AddressList getTo()
Returns the value of the To header field of this message asAddressListobject ornullif it is not present.
-
getCc
public AddressList getCc()
Returns the value of the Cc header field of this message asAddressListobject ornullif it is not present.
-
getBcc
public AddressList getBcc()
Returns the value of the Bcc header field of this message asAddressListobject ornullif it is not present.
-
getReplyTo
public AddressList getReplyTo()
Returns the value of the Reply-To header field of this message asAddressListobject ornullif it is not present.- Specified by:
getReplyToin interfaceMessage- Returns:
- value of the reply to field of this message.
-
getMailbox
private Mailbox getMailbox(java.lang.String fieldName)
-
getMailboxList
private MailboxList getMailboxList(java.lang.String fieldName)
-
getAddressList
private AddressList getAddressList(java.lang.String fieldName)
-
-