Bean Validator

Bean Validator

Scheme: bean-validator
Syntax: bean-validator:label
Description: The Validator component performs bean validation of the message body using the Java Bean Validation API.
Deprecated:false
Maven: org.apache.camel/camel-bean-validator/2.17.0.redhat-630377

The Validator component performs bean validation of the message body using the Java Bean Validation API. Camel uses the reference implementation, which is Hibernate Validator.

Name Kind Group Required Default Type Enum Description
label path producer true java.lang.String Where label is an arbitrary text value describing the endpoint
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.
constraintValidatorFactory parameter producer javax.validation.ConstraintValidatorFactory To use a custom {@link ConstraintValidatorFactory}
group parameter producer javax.validation.groups.Default java.lang.String To use a custom validation group
messageInterpolator parameter producer javax.validation.MessageInterpolator To use a custom {@link MessageInterpolator}
traversableResolver parameter producer javax.validation.TraversableResolver To use a custom {@link TraversableResolver}
validationProviderResolver parameter producer javax.validation.ValidationProviderResolver To use a a custom {@link ValidationProviderResolver}
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
synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).