org.apache.camel.processor
Class Interceptor

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.processor.DelegateProcessor
          extended by org.apache.camel.processor.Interceptor
All Implemented Interfaces:
Intercept, Processor, Service
Direct Known Subclasses:
StreamCachingInterceptor

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: 42218 $

Field Summary
 
Fields inherited from class org.apache.camel.processor.DelegateProcessor
processor
 
Constructor Summary
Interceptor()
           
Interceptor(Processor interceptorLogic)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 Processor getInterceptorLogic()
           
 void process(Exchange exchange)
          Processes the message exchange
 void setInterceptorLogic(Processor interceptorLogic)
           
 
Methods inherited from class org.apache.camel.processor.DelegateProcessor
getProcessor, proceed, processNext, setProcessor, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getThreadName, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Interceptor

public Interceptor()

Interceptor

public Interceptor(Processor interceptorLogic)
Method Detail

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 © 2008 IONA Open Source Community. All Rights Reserved.