org.apache.camel.processor
Class FilterProcessor

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.processor.DelegateProcessor
          extended by org.apache.camel.processor.FilterProcessor
All Implemented Interfaces:
Navigate<Processor>, Processor, Traceable, Service

public class FilterProcessor
extends DelegateProcessor
implements Traceable

The processor which implements the Message Filter EIP pattern.

Version:
$Revision: 890339 $

Field Summary
 
Fields inherited from class org.apache.camel.processor.DelegateProcessor
processor
 
Constructor Summary
FilterProcessor(Predicate predicate, Processor processor)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 Predicate getPredicate()
           
 String getTraceLabel()
          Gets the trace label used for logging when tracing is enabled.
 void process(Exchange exchange)
          Processes the message exchange
 String toString()
           
 
Methods inherited from class org.apache.camel.processor.DelegateProcessor
getProcessor, hasNext, next, proceed, processNext, setProcessor
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterProcessor

public FilterProcessor(Predicate predicate,
                       Processor processor)
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
Parameters:
exchange - the message exchange
Throws:
Exception - if an internal processing error has occurred.

toString

public String toString()
Overrides:
toString in class DelegateProcessor

getTraceLabel

public String getTraceLabel()
Description copied from interface: Traceable
Gets the trace label used for logging when tracing is enabled.

The label should be short and precise.

Specified by:
getTraceLabel in interface Traceable
Returns:
the label

getPredicate

public Predicate getPredicate()

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 © 2007-2010 The Apache Software Foundation. All Rights Reserved.