Class IncomingMessageManipulationResult
- java.lang.Object
-
- com.novomind.ecom.api.imail.core.result.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 Summary
Constructors Constructor Description IncomingMessageManipulationResult(javax.mail.Message message)
Creates anIncomingMessageManipulationResult
with a manipulated message
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<javax.mail.Message>
getMessage()
static IncomingMessageManipulationResult
getUnmodifiedResult()
Provides anIncomingMessageManipulationResult
without any modifications
-
-
-
Method Detail
-
getUnmodifiedResult
public static IncomingMessageManipulationResult getUnmodifiedResult()
Provides anIncomingMessageManipulationResult
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 emptyOptional
if no manipulation has been done. - Since:
- 11.4
-
-