Class JcrMessage

    • Constructor Detail

      • JcrMessage

        public JcrMessage()
    • Method Detail

      • getFlags

        public javax.mail.Flags getFlags()
        Specified by:
        getFlags in interface MessageDelegate
        Returns:
        Returns the flags.
      • getHeaders

        public javax.mail.internet.InternetHeaders getHeaders()
        Specified by:
        getHeaders in interface MessageDelegate
        Returns:
        headers saved in delegate
      • getMessageNumber

        public int getMessageNumber()
        Returns the 1-based number of the message the delegate is associated with. If a message number is not set it is assumed the message does not belong to a folder and thus has a message number of zero (0).
        Specified by:
        getMessageNumber in interface MessageDelegate
        Returns:
        the message number associated with this delegate, or zero if no message number is identified
      • getUid

        public long getUid()
        Returns the UID associated with the message.
        Specified by:
        getUid in interface MessageDelegate
        Returns:
        a long representation of a UID, or -1 if no UID is assigned
      • isExpunged

        public boolean isExpunged()
        Specified by:
        isExpunged in interface MessageDelegate
        Returns:
        Returns the expunged.
      • setMessageNumber

        public void setMessageNumber​(Integer messageNumber)
        Parameters:
        messageNumber -
      • setExpunged

        public void setExpunged​(boolean expunged)
        Specified by:
        setExpunged in interface MessageDelegate
        Parameters:
        expunged - The expunged to set.
      • setFlags

        public void setFlags​(javax.mail.Flags flags)
        Specified by:
        setFlags in interface MessageDelegate
        Parameters:
        flags - The flags to set.
      • setForwarded

        public void setForwarded​(Date forwarded)
        Specified by:
        setForwarded in interface MessageDelegate
        Parameters:
        forwarded - The forwarded to set.
      • setHeaders

        public void setHeaders​(javax.mail.internet.InternetHeaders headers)
        Saves headers to delegate. Implementations may choose to only save a subset of the specified headers.
        Specified by:
        setHeaders in interface MessageDelegate
        Parameters:
        headers - headers to save to delegate
      • setHeaders

        public void setHeaders​(Enumeration<javax.mail.Header> headers)
        Specified by:
        setHeaders in interface MessageDelegate
        Parameters:
        headers - an enumeration of headers to attach to the message
      • setReceived

        public void setReceived​(Date received)
        Specified by:
        setReceived in interface MessageDelegate
        Parameters:
        received - The received to set.
      • setReplied

        public void setReplied​(Date replied)
        Specified by:
        setReplied in interface MessageDelegate
        Parameters:
        replied - The replied to set.
      • setUid

        public void setUid​(long uid)
        Sets the UID associated with the message.
        Specified by:
        setUid in interface MessageDelegate
        Parameters:
        uid - a UID value to associate with the message
      • setMessage

        public void setMessage​(javax.mail.Message message)
                        throws javax.mail.MessagingException,
                               IOException
        Parameters:
        message -
        Throws:
        javax.mail.MessagingException
        IOException
      • setInReplyTo

        public final void setInReplyTo​(JcrMessage inReplyTo)
        Parameters:
        inReplyTo - the inReplyTo to set