Package org.apache.camel.model.validator
Class ValidatorDefinition
java.lang.Object
org.apache.camel.model.validator.ValidatorDefinition
- Direct Known Subclasses:
CustomValidatorDefinition
,EndpointValidatorDefinition
,PredicateValidatorDefinition
Represents a Validator
which declaratively validates message content according to the input type declared by
InputTypeDefinition
and/or output type declared by OutputTypeDefinition
.
If you specify type='xml:ABC', the validator will be picked up when current message type is 'xml:ABC'. If you specify type='json', then it will be picked up for all of json validation.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ValidatorDefinition
public ValidatorDefinition()
-
-
Method Details
-
getType
-
setType
Set the data type name. If you specify 'xml:XYZ', the validator will be picked up if message type is 'xml:XYZ'. If you specify just 'xml', the validator matches with all of 'xml' message type like 'xml:ABC' or 'xml:DEF'. -
setType
Set the data type using Java class.
-