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 a
ValidationException
.
The IncomingChatMessageValidator
can only be used in the novomind iAGENT Routing process.- Since:
- 12.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(IncomingAttachmentChatMessage incomingAttachmentChatMessage) The method is called synchronously before the processing of an incoming attachment chat message.
-
Method Details
-
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
-