@Metadata(label="validation") public class PredicateValidatorDefinition extends ValidatorDefinition
Validator
which leverages expression or predicates to
perform content validation. A ProcessorValidator
will be created internally
with a PredicateValidatingProcessor
which validates the message according to specified expression/predicates.
ValidatorDefinition
Validator
Constructor and Description |
---|
PredicateValidatorDefinition() |
Modifier and Type | Method and Description |
---|---|
protected Validator |
doCreateValidator(CamelContext context) |
ExpressionDefinition |
getExpression() |
void |
setExpression(ExpressionDefinition expression) |
createValidator, getType, setType, setType
public PredicateValidatorDefinition()
protected Validator doCreateValidator(CamelContext context) throws Exception
doCreateValidator
in class ValidatorDefinition
Exception
public ExpressionDefinition getExpression()
public void setExpression(ExpressionDefinition expression)
Apache Camel