public class DelegateProcessor
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.DelegateProcessor, org.apache.camel.Processor, org.apache.camel.Navigate<org.apache.camel.Processor>
Processor
which can be useful for implementation
inheritance when writing an Policy
Important: This implementation does not support the asynchronous routing engine. If you are
implementing a EIP pattern please use the DelegateAsyncProcessor
instead.DelegateAsyncProcessor
Modifier and Type | Field and Description |
---|---|
protected org.apache.camel.Processor |
processor |
Constructor and Description |
---|
DelegateProcessor() |
DelegateProcessor(org.apache.camel.Processor processor) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.Processor |
getProcessor() |
boolean |
hasNext() |
List<org.apache.camel.Processor> |
next() |
void |
process(org.apache.camel.Exchange exchange) |
protected void |
processNext(org.apache.camel.Exchange exchange) |
void |
setProcessor(org.apache.camel.Processor processor) |
String |
toString() |
build, 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, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public DelegateProcessor()
public DelegateProcessor(org.apache.camel.Processor processor)
public void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
Exception
protected void processNext(org.apache.camel.Exchange exchange) throws Exception
Exception
public org.apache.camel.Processor getProcessor()
getProcessor
in interface org.apache.camel.DelegateProcessor
public void setProcessor(org.apache.camel.Processor processor)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.BaseService
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.service.BaseService
Exception
public boolean hasNext()
hasNext
in interface org.apache.camel.Navigate<org.apache.camel.Processor>
public List<org.apache.camel.Processor> next()
next
in interface org.apache.camel.Navigate<org.apache.camel.Processor>
Apache Camel