Package com.novomind.ecom.api.imail.core
Interface IncomingMessageAnalyzer
public interface IncomingMessageAnalyzer
This interface is an extension point to analyze an IncomingMessage
after the message has been received but before it is pushed to the
central backlog.
The result of an analysis contains several types of AnalyzerDecisions.
The extension point is also able to cancel the message processing
by throwing an exception.
- Since:
- 11.15
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionanalyzeIncomingMessage(IncomingMessageAnalyzerInput incomingMessageAnalyzerInput) The method is called after the message has been received but before it is pushed to the central backlog.
-
Method Details
-
analyzeIncomingMessage
IncomingMessageAnalyzerResult analyzeIncomingMessage(IncomingMessageAnalyzerInput incomingMessageAnalyzerInput) throws PermanentMessagingException, TemporaryMessagingException The method is called after the message has been received but before it is pushed to the central backlog.- Parameters:
incomingMessageAnalyzerInput- anIncomingMessageAnalyzerInputthat provides the current state of analysis, the currentIncomingBindingsand information about theIncomingMessage.- Returns:
- the
IncomingMessageAnalyzerResultwhich contains theAnalyzerDecisions for this analysis step, orIncomingMessageAnalyzerResult.UNMODIFIEDif no decisions where made. - Throws:
PermanentMessagingException- Throw a PermanentMessagingException to indicate a permanent error. The message will be removed from the incoming source without being processed. The message will be archived by the novomind iAGENT system.TemporaryMessagingException- Throw a TemporaryMessagingException to indicate a temporary error. The message will stay on the incoming source and retrieved again after a short period of time.- Since:
- 11.15
-