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.
  • Constructor Details

    • AbstractMessage

      public AbstractMessage()
  • Method Details

    • getMessageId

      public String getMessageId()
      Returns the value of the Message-ID header field of this message or null if it is not present.
      Specified by:
      getMessageId in interface Message
      Returns:
      the identifier of this message.
    • getSubject

      public String getSubject()
      Returns the (decoded) value of the Subject header field of this message or null if it is not present.
      Specified by:
      getSubject in interface Message
      Returns:
      the subject of this message.
    • getDate

      public Date getDate()
      Returns the value of the Date header field of this message as Date object or null if it is not present.
      Specified by:
      getDate in interface Message
      Returns:
      the date of this message.
    • getSender

      public Mailbox getSender()
      Returns the value of the Sender header field of this message as Mailbox object or null if it is not present.
      Specified by:
      getSender in interface Message
      Returns:
      the sender of this message.
    • getFrom

      public MailboxList getFrom()
      Returns the value of the From header field of this message as MailboxList object or null if it is not present.
      Specified by:
      getFrom in interface Message
      Returns:
      value of the from field of this message.
    • getTo

      public AddressList getTo()
      Returns the value of the To header field of this message as AddressList object or null if it is not present.
      Specified by:
      getTo in interface Message
      Returns:
      value of the to field of this message.
    • getCc

      public AddressList getCc()
      Returns the value of the Cc header field of this message as AddressList object or null if it is not present.
      Specified by:
      getCc in interface Message
      Returns:
      value of the cc field of this message.
    • getBcc

      public AddressList getBcc()
      Returns the value of the Bcc header field of this message as AddressList object or null if it is not present.
      Specified by:
      getBcc in interface Message
      Returns:
      value of the bcc field of this message.
    • getReplyTo

      public AddressList getReplyTo()
      Returns the value of the Reply-To header field of this message as AddressList object or null if it is not present.
      Specified by:
      getReplyTo in interface Message
      Returns:
      value of the reply to field of this message.
    • getMailbox

      private Mailbox getMailbox(String fieldName)
    • getMailboxList

      private MailboxList getMailboxList(String fieldName)
    • getAddressList

      private AddressList getAddressList(String fieldName)