Class AbstractEmailReader

    • Constructor Detail

      • AbstractEmailReader

        public AbstractEmailReader()
    • Method Detail

      • check

        protected void check()
        Hook method for performing checks before reading the emails. Throws IllegalStateException in case something is wrong.

        Default implementation does nothing.
      • doRead

        protected abstract Email doRead()
        Performs the actual reading.
        the email that was read, null in case of error
      • read

        public Email read()
        Reads the email.
        Specified by:
        read in interface EmailReader
        the email, null in case of an error