MSV

MSV

Scheme: msv
Syntax: msv:resourceUri
Description: Validates the payload of a message using the MSV Library.
Deprecated:false
ProducerOnly:true
Async:false
Maven: org.apache.camel/camel-msv/2.18.1.redhat-000021

Validates the payload of a message using the MSV Library.

Name Kind Group Required Default Type Enum Description
resourceUri path producer true java.lang.String URL to a local resource on the classpath, or a reference to lookup a bean in the Registry, or a full URL to a remote resource or resource on the file system which contains the XSD to validate against.
bridgeErrorHandler parameter consumer boolean Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored.
exceptionHandler parameter consumer (advanced) org.apache.camel.spi.ExceptionHandler To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored.
exchangePattern parameter consumer (advanced) org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the exchange pattern when the consumer creates an exchange.
failOnNullBody parameter producer true boolean Whether to fail if no body exists.
failOnNullHeader parameter producer true boolean Whether to fail if no header exists when validating against a header.
headerName parameter producer java.lang.String To validate against a header instead of the message body.
errorHandler parameter advanced org.apache.camel.processor.validation.ValidatorErrorHandler To use a custom org.apache.camel.processor.validation.ValidatorErrorHandler. The default error handler captures the errors and throws an exception.
resourceResolver parameter advanced org.w3c.dom.ls.LSResourceResolver To use a custom LSResourceResolver. Do not use together with resourceResolverFactory
resourceResolverFactory parameter advanced org.apache.camel.component.validator.ValidatorResourceResolverFactory To use a custom LSResourceResolver which depends on a dynamic endpoint resource URI. The default resource resolver factory resturns a resource resolver which can read files from the class path and file system. Do not use together with resourceResolver.
schemaFactory parameter advanced javax.xml.validation.SchemaFactory To use a custom javax.xml.validation.SchemaFactory
schemaLanguage parameter advanced http://www.w3.org/2001/XMLSchema java.lang.String Configures the W3C XML Schema Namespace URI.
synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).
useDom parameter advanced boolean Whether DOMSource/DOMResult or SaxSource/SaxResult should be used by the validator.
useSharedSchema parameter advanced true boolean Whether the Schema instance should be shared or not. This option is introduced to work around a JDK 1.6.x bug. Xerces should not have this issue.