org.apache.camel.processor
Class Interceptor
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.DelegateProcessor
org.apache.camel.processor.Interceptor
- All Implemented Interfaces:
- Intercept, Processor, Service
public class Interceptor
- extends DelegateProcessor
- implements Intercept
An interceptor which provides the processing logic as a pluggable processor
which allows the DelegateProcessor.proceed(Exchange)
method to be called at some point
- Version:
- $Revision: 610 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
Interceptor
public Interceptor()
Interceptor
public Interceptor(Processor interceptorLogic)
process
public void process(Exchange exchange)
throws Exception
- Description copied from interface:
Processor
- Processes the message exchange
- Specified by:
process
in interface Processor
- Overrides:
process
in class DelegateProcessor
- Throws:
Exception
- if an internal processing error has occurred.
getInterceptorLogic
public Processor getInterceptorLogic()
- Specified by:
getInterceptorLogic
in interface Intercept
setInterceptorLogic
public void setInterceptorLogic(Processor interceptorLogic)
- Specified by:
setInterceptorLogic
in interface Intercept
doStart
protected void doStart()
throws Exception
- Overrides:
doStart
in class DelegateProcessor
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop
in class DelegateProcessor
- Throws:
Exception
Copyright © 2009 IONA Open Source Community. All Rights Reserved.