Class IncomingMessageManipulationResult


  • public final class IncomingMessageManipulationResult
    extends java.lang.Object

    Represents the result of the optional incoming message manipulation by an IncomingMessageManipulator.

    Since:
    11.4
    • Constructor Detail

      • IncomingMessageManipulationResult

        public IncomingMessageManipulationResult​(javax.mail.Message message)
        Creates an IncomingMessageManipulationResult with a manipulated message
        Parameters:
        message - the manipulated message
        Since:
        11.4
    • Method Detail

      • getUnmodifiedResult

        public static IncomingMessageManipulationResult getUnmodifiedResult()
        Provides an IncomingMessageManipulationResult without any modifications
        Returns:
        an IncomingMessageManipulationResult without any modifications
        Since:
        11.4
      • getMessage

        public java.util.Optional<javax.mail.Message> getMessage()
        Returns:
        an Optional with the manipulated message, or an empty Optional if no manipulation has been done.
        Since:
        11.4