Package org.apache.james.mime4j.dom
Interface Message
-
- All Superinterfaces:
Body,Disposable,Entity
- All Known Implementing Classes:
AbstractMessage,MessageImpl
public interface Message extends Entity, Body
An MIME message (as defined in RFC 2045).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMessage.Builder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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 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
java.lang.String getMessageId()
Returns the value of the Message-ID header field of this message ornullif it is not present.- Returns:
- the identifier of this message.
-
getSubject
java.lang.String getSubject()
Returns the (decoded) value of the Subject header field of this message ornullif it is not present.- Returns:
- the subject of this message.
-
getDate
java.util.Date getDate()
Returns the value of the Date header field of this message asDateobject ornullif it is not present.- Returns:
- the date of this message.
-
getSender
Mailbox getSender()
Returns the value of the Sender header field of this message asMailboxobject ornullif it is not present.- Returns:
- the sender of this message.
-
getFrom
MailboxList getFrom()
Returns the value of the From header field of this message asMailboxListobject ornullif 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 asAddressListobject ornullif 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 asAddressListobject ornullif 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 asAddressListobject ornullif 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 asAddressListobject ornullif it is not present.- Returns:
- value of the reply to field of this message.
-
-