public class JXPathExpression extends ExpressionSupport
Expression support| Constructor and Description |
|---|
JXPathExpression(String expression,
Class<?> type)
Creates a new JXPathExpression instance (lenient is disabled)
|
JXPathExpression(String expression,
Class<?> type,
boolean lenient)
Creates a new JXPathExpression instance
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
assertionFailureMessage(Exchange exchange) |
<T> T |
evaluate(Exchange exchange,
Class<T> tClass)
Returns the value of the expression on the given exchange
|
boolean |
isLenient() |
void |
setLenient(boolean lenient) |
String |
toString() |
assertMatches, evaluate, matchespublic JXPathExpression(String expression, Class<?> type)
expression - the JXPath expression to be evaluatedtype - the expected result typepublic boolean isLenient()
public void setLenient(boolean lenient)
public <T> T evaluate(Exchange exchange, Class<T> tClass)
Expressionexchange - the message exchange on which to evaluate the expressiontClass - the expected type of the evaluation resultprotected String assertionFailureMessage(Exchange exchange)
assertionFailureMessage in class ExpressionSupportCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.