public abstract class ExpressionAdapter extends ExpressionSupport
Expression
using Java code with a minimum amount of code to write so that the developer only needs
to implement one of the evaluate(org.apache.camel.Exchange, Class) or
ExpressionSupport.evaluate(org.apache.camel.Exchange) methods.| Constructor and Description |
|---|
ExpressionAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
assertionFailureMessage(Exchange exchange) |
<T> T |
evaluate(Exchange exchange,
Class<T> type)
Returns the value of the expression on the given exchange
|
assertMatches, evaluate, matchespublic ExpressionAdapter()
protected String assertionFailureMessage(Exchange exchange)
assertionFailureMessage in class ExpressionSupportpublic <T> T evaluate(Exchange exchange, Class<T> type)
Expressionexchange - the message exchange on which to evaluate the expressiontype - the expected type of the evaluation resultApache Camel