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 Message
Message.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate AddressListgetAddressList(String fieldName) getBcc()Returns the value of the Bcc header field of this message asAddressListobject ornullif it is not present.getCc()Returns the value of the Cc header field of this message asAddressListobject ornullif it is not present.getDate()Returns the value of the Date header field of this message asDateobject ornullif it is not present.getFrom()Returns the value of the From header field of this message asMailboxListobject ornullif it is not present.private MailboxgetMailbox(String fieldName) private MailboxListgetMailboxList(String fieldName) Returns the value of the Message-ID header field of this message ornullif it is not present.Returns the value of the Reply-To header field of this message asAddressListobject ornullif it is not present.Returns the value of the Sender header field of this message asMailboxobject ornullif it is not present.Returns the (decoded) value of the Subject header field of this message ornullif it is not present.getTo()Returns the value of the To header field of this message asAddressListobject ornullif it is not present.Methods inherited from class AbstractEntity
calcCharset, calcMimeType, calcTransferEncoding, dispose, getBody, getCharset, getContentTransferEncoding, getDispositionType, getFilename, getHeader, getMimeType, getParent, isMultipart, obtainField, obtainHeader, removeBody, setBody, setHeader, setParentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Disposable
disposeMethods inherited from interface 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 ornullif it is not present.- Specified by:
getMessageIdin interfaceMessage- Returns:
- the identifier of this message.
-
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
-
getSender
-
getFrom
Returns the value of the From header field of this message asMailboxListobject ornullif it is not present. -
getTo
Returns the value of the To header field of this message asAddressListobject ornullif it is not present. -
getCc
Returns the value of the Cc header field of this message asAddressListobject ornullif it is not present. -
getBcc
Returns the value of the Bcc header field of this message asAddressListobject ornullif it is not present. -
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
-
getMailboxList
-
getAddressList
-