Interface IncomingChatMessageValidator
-
public interface IncomingChatMessageValidator
This interface is an extension point to validate a new chat message before further processing. It is allowed to prevent the receipt of chat messages by throwing aValidationException
. TheIncomingChatMessageValidator
can only be used in the novomind iAGENT Routing process.- Since:
- 12.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
validate(IncomingAttachmentChatMessage incomingAttachmentChatMessage)
The method is called synchronously before the processing of an incoming attachment chat message.
-
-
-
Method Detail
-
validate
void validate(IncomingAttachmentChatMessage incomingAttachmentChatMessage) throws ValidationException
The method is called synchronously before the processing of an incoming attachment chat message.- Parameters:
incomingAttachmentChatMessage
- provides all information about the attachment.- Throws:
ValidationException
- Throw aValidationException
to indicate a validation error. If thrown, the attachment chat message will be discarded. Please note that this will also stop the processing of any subsequentIncomingChatMessageValidator
implementations.- Since:
- 12.0
-
-