public class ProcessorValidator
extends org.apache.camel.spi.Validator
Validator implementation which leverages Processor to perform validation.
Validator| Constructor and Description |
|---|
ProcessorValidator(org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
ProcessorValidator |
setProcessor(org.apache.camel.Processor processor)
Set processor to use
|
String |
toString() |
void |
validate(org.apache.camel.Message message,
org.apache.camel.spi.DataType type)
Perform content validation with specified type using Processor.
|
getCamelContext, getType, setCamelContext, setTypebuild, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic ProcessorValidator(org.apache.camel.CamelContext context)
public void validate(org.apache.camel.Message message,
org.apache.camel.spi.DataType type)
throws org.apache.camel.ValidationException
validate in class org.apache.camel.spi.Validatormessage - message to apply validationtype - 'from' data typeorg.apache.camel.ValidationExceptionpublic ProcessorValidator setProcessor(org.apache.camel.Processor processor)
processor - Processorpublic String toString()
toString in class org.apache.camel.spi.Validatorprotected void doStart()
throws Exception
doStart in class org.apache.camel.spi.ValidatorExceptionApache Camel