org.apache.camel.support
Class ExpressionSupport

java.lang.Object
  extended by org.apache.camel.support.ExpressionSupport
All Implemented Interfaces:
Expression, Predicate
Direct Known Subclasses:
ExpressionAdapter, ExpressionSupport

public abstract class ExpressionSupport
extends Object
implements Expression, Predicate

A useful base class for Predicate and Expression implementations

Version:

Constructor Summary
ExpressionSupport()
           
 
Method Summary
protected abstract  String assertionFailureMessage(Exchange exchange)
           
 void assertMatches(String text, Exchange exchange)
           
 Object evaluate(Exchange exchange)
           
 boolean matches(Exchange exchange)
          Evaluates the predicate on the message exchange and returns true if this exchange matches the predicate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Expression
evaluate
 

Constructor Detail

ExpressionSupport

public ExpressionSupport()
Method Detail

matches

public boolean matches(Exchange exchange)
Description copied from interface: Predicate
Evaluates the predicate on the message exchange and returns true if this exchange matches the predicate

Specified by:
matches in interface Predicate
Parameters:
exchange - the message exchange
Returns:
true if the predicate matches

evaluate

public Object evaluate(Exchange exchange)

assertMatches

public void assertMatches(String text,
                          Exchange exchange)

assertionFailureMessage

protected abstract String assertionFailureMessage(Exchange exchange)


Apache CAMEL