Class DefaultMessageValidator

    • Constructor Detail

      • DefaultMessageValidator

        public DefaultMessageValidator()
    • Method Detail

      • supportsMessageType

        public boolean supportsMessageType​(String messageType,
                                           Message message)
        Description copied from interface: MessageValidator
        Checks if this message validator is capable of this message type. XML message validators may only apply to this message type while JSON message validator implementations do not and vice versa. This check is called by the MessageValidatorRegistry in order to find a proper message validator for a message.
        Parameters:
        messageType - the message type representation as String (e.g. xml, json, csv, plaintext).
        message - the message object
        Returns:
        true if this message validator is capable of validating the message type.