Bean Validation Component - Camel 2.3 onwards
The Validation component performs bean validation of the message body using the Java Bean Validation API (JSR 303). Camel uses the reference implementation, which is Hibernate Validator.
URI format
Code Block |
---|
bean-validator:something |
...
You can append query options to the URI in the following format, ?option=value&option=value&...
URI Options
Option | Default | Description |
---|---|---|
| | The custom validation group to use. |
| | Reference to a custom |
| | Reference to a custom |
| | Reference to a custom |
Example
Assumed we have a java bean with the following annotations
...