org.apache.camel.processor
Class DelegateProcessor
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.DelegateProcessor
- All Implemented Interfaces:
- Navigate, Processor, Service
- Direct Known Subclasses:
- CatchProcessor, DelayProcessorSupport, FilterProcessor, HandleFaultInterceptor, InstrumentationProcessor, InterceptEndpointProcessor, LoopProcessor, StreamCachingInterceptor, ThreadsProcessor, TraceInterceptor, TransformProcessor, UnitOfWorkProcessor
public class DelegateProcessor
- extends ServiceSupport
- implements Processor, Navigate
A Delegate pattern which delegates processing to a nested processor which can
be useful for implementation inheritance when writing an Policy
- Version:
- $Revision: 769303 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
processor
protected Processor processor
DelegateProcessor
public DelegateProcessor()
DelegateProcessor
public DelegateProcessor(Processor processor)
process
public void process(Exchange exchange)
throws Exception
- Description copied from interface:
Processor
- Processes the message exchange
- Specified by:
process
in interface Processor
- Parameters:
exchange
- the message exchange
- Throws:
Exception
- if an internal processing error has occurred.
processNext
protected void processNext(Exchange exchange)
throws Exception
- Throws:
Exception
toString
public String toString()
- Overrides:
toString
in class Object
getProcessor
public Processor getProcessor()
setProcessor
public void setProcessor(Processor processor)
doStart
protected void doStart()
throws Exception
- Specified by:
doStart
in class ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop
in class ServiceSupport
- Throws:
Exception
proceed
public void proceed(Exchange exchange)
throws Exception
- Proceed with the underlying delegated processor
- Throws:
Exception
hasNext
public boolean hasNext()
- Description copied from interface:
Navigate
- Are there more outputs?
- Specified by:
hasNext
in interface Navigate
- Returns:
- true if more outputs
next
public List<Processor> next()
- Description copied from interface:
Navigate
- Next group of outputs
- Specified by:
next
in interface Navigate
- Returns:
- next group or null if no more outputs
Apache CAMEL