Validates the payload of a message using XML Schema and JAXP Validation.
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. | |||
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. | |||
exchangePattern | parameter | advanced | InOnly | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the default exchange pattern when creating an exchange. | |
resourceResolver | parameter | advanced | org.w3c.dom.ls.LSResourceResolver | To use a custom LSResourceResolver. See also {@link #setResourceResolverFactory(ValidatorResourceResolverFactory)} | |||
resourceResolverFactory | parameter | advanced | org.apache.camel.component.validator.ValidatorResourceResolverFactory | For creating a resource resolver which depends on the endpoint resource URI. Must not be used in combination with method {@link #setResourceResolver(LSResourceResolver). If not set then {@link DefaultValidatorResourceResolverFactory} is used | |||
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). @param synchronous true to enforce synchronous processing | ||
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. |