org.apache.camel.processor.validation
Class PredicateValidatingProcessor
java.lang.Object
org.apache.camel.processor.validation.PredicateValidatingProcessor
- All Implemented Interfaces:
- Processor, Traceable
public class PredicateValidatingProcessor
- extends Object
- implements Processor, Traceable
A processor which validates the content of the inbound message body
against a predicate.
- Version:
PredicateValidatingProcessor
public PredicateValidatingProcessor(Predicate predicate)
process
public void process(Exchange exchange)
throws Exception
- Description copied from interface:
Processor
- Processes the message exchange
- Specified by:
process in interface Processor
- Parameters:
exchange - the message exchange
- Throws:
Exception - if an internal processing error has occurred.
getPredicate
public Predicate getPredicate()
toString
public String toString()
- Overrides:
toString in class Object
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
Apache CAMEL