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 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 a ValidationException 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 subsequent IncomingChatMessageValidator implementations.
        Since:
        12.0