org.apache.camel.support
Class ExpressionSupport
java.lang.Object
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:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionSupport
public ExpressionSupport()
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