Class AbstractMessage

    • Constructor Detail

      • AbstractMessage

        public AbstractMessage()
    • Method Detail

      • getMessageId

        public java.lang.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 java.lang.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 java.util.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​(java.lang.String fieldName)
      • getMailboxList

        private MailboxList getMailboxList​(java.lang.String fieldName)
      • getAddressList

        private AddressList getAddressList​(java.lang.String fieldName)