Class ExternalReplyMessageManipulationResult


  • public final class ExternalReplyMessageManipulationResult
    extends java.lang.Object

    Represents the result of the optional external reply message manipulation by an ExternalReplyMessageManipulator.

    Since:
    11.10
    • Constructor Detail

      • ExternalReplyMessageManipulationResult

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

      • getUnmodifiedResult

        public static ExternalReplyMessageManipulationResult getUnmodifiedResult()
        Provides an ExternalReplyMessageManipulationResult without any modifications
        Returns:
        an ExternalReplyMessageManipulationResult without any modifications
        Since:
        11.10
      • 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.10