@Metadata(label="validation") public class EndpointValidatorDefinition extends ValidatorDefinition
Validator
which leverages camel validator component such as
Validator Component and
Bean Validator Component to
perform content validation. A ProcessorValidator
will be created internally
with a SendProcessor
which forwards the message to the validator Endpoint.
ValidatorDefinition
Validator
Constructor and Description |
---|
EndpointValidatorDefinition() |
Modifier and Type | Method and Description |
---|---|
protected Validator |
doCreateValidator(CamelContext context) |
String |
getRef() |
String |
getUri() |
void |
setRef(String ref)
Set the reference of the Endpoint.
|
void |
setUri(String uri)
Set the URI of the Endpoint.
|
createValidator, getType, setType, setType
public EndpointValidatorDefinition()
protected Validator doCreateValidator(CamelContext context) throws Exception
doCreateValidator
in class ValidatorDefinition
Exception
public void setRef(String ref)
ref
- reference of the EndpointApache Camel