org.apache.camel.processor
Class FilterProcessor

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

public class FilterProcessor
extends ServiceSupport
implements Processor

Version:
$Revision: 534941 $

Constructor Summary
FilterProcessor(Predicate<Exchange> predicate, Processor processor)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 Predicate<Exchange> getPredicate()
           
 Processor getProcessor()
           
 void process(Exchange exchange)
          Processes the message exchange
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
isStarted, isStopped, isStopping, 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<Exchange> 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
Throws:
Exception - if an internal processing error has occurred.

toString

public String toString()
Overrides:
toString in class Object

getPredicate

public Predicate<Exchange> getPredicate()

getProcessor

public Processor getProcessor()

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


Copyright © 2007 Apache Software Foundation. All Rights Reserved.