Class IncomingMailFetching

    • Field Detail

      • pattern

        protected java.util.regex.Pattern pattern
        The Pattern being processed.
      • mail

        protected MailMessage mail
        The Mail being processed.
      • criteriaClasses

        protected static java.lang.Class<? extends FetchCriteria>[] criteriaClasses
        Ordered criteria class to process.
    • Method Detail

      • processCriterias

        public boolean processCriterias()
        Returns:
        true if some Criteria validate the current Mail, and the mail should be fetched. See AbstractIncomingMailFetchCriteria.
        Since:
        jcms-9.0.0
      • isMatchingRecipient

        public boolean isMatchingRecipient()
        Returns:
        true if some mail's recipient matches pattern.
        Since:
        jcms-9.0.0
      • getMail

        public MailMessage getMail()
        Returns:
        the mail
        Since:
        jcms-9.0.0
      • getMatchingRecipient

        public java.lang.String getMatchingRecipient()
        Returns:
        an optional Mail's recipient that matches the Pattern.
        Since:
        jcms-9.0.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object