org.apache.camel.processor
Class FilterProcessor
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.DelegateProcessor
org.apache.camel.processor.FilterProcessor
- All Implemented Interfaces:
- Navigate, Processor, Traceable, Service
public class FilterProcessor
- extends DelegateProcessor
- implements Traceable
The processor which implements the
Message Filter EIP pattern.
- Version:
- $Revision: 788621 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
FilterProcessor
public FilterProcessor(Predicate predicate,
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
- 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 lable should be short and precise.
- Specified by:
getTraceLabel
in interface Traceable
- Returns:
- the label
getPredicate
public Predicate getPredicate()
Apache CAMEL