Class AbstractMailListener

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int order  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object obj)
      Compare this object with the specified object for order.
      boolean equals​(MailListener obj)
      Indicates wheter some other object is "equal to" this one.
      boolean fetchMessage​(MailMessage mail, boolean stored, java.util.Map<java.lang.String,​java.lang.Object> context)
      Invoked after a mail was fetch.
      int getOrder()
      Returns object orders value.
      void setOrder​(int order)
      Sets the listener order
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • order

        protected int order
    • Constructor Detail

      • AbstractMailListener

        public AbstractMailListener()
    • Method Detail

      • fetchMessage

        public boolean fetchMessage​(MailMessage mail,
                                    boolean stored,
                                    java.util.Map<java.lang.String,​java.lang.Object> context)
        Description copied from interface: MailListener
        Invoked after a mail was fetch.
        Specified by:
        fetchMessage in interface MailListener
        Parameters:
        mail - the javax.mail.Message fetched
        stored - boolean to store MailMessage in JCMS
        context - a context used to store information
        Returns:
        boolean stored
        See Also:
        MailListener.fetchMessage(MailMessage, boolean, Map)
      • getOrder

        public final int getOrder()
        Returns object orders value.
        Returns:
        int object orders value.
      • setOrder

        public final void setOrder​(int order)
        Sets the listener order
        Parameters:
        order - the order of the listener
      • compareTo

        public final int compareTo​(java.lang.Object obj)
        Compare this object with the specified object for order.
        Specified by:
        compareTo in interface java.lang.Comparable
        Parameters:
        obj - the Object to be compared.
        See Also:
        Comparable.compareTo(java.lang.Object)
      • equals

        public final boolean equals​(MailListener obj)
        Indicates wheter some other object is "equal to" this one. The comparison is performed with compareTo() method.
        Parameters:
        obj - the Object to be compared.
        Returns:
        true if equal