org.apache.camel.language.jxpath
Class JXPathExpression
java.lang.Object
org.apache.camel.impl.ExpressionSupport
org.apache.camel.language.jxpath.JXPathExpression
- All Implemented Interfaces:
- Expression, Predicate
public class JXPathExpression
- extends ExpressionSupport
JXPath Expression support
JXPathExpression
public JXPathExpression(String expression,
Class<?> type)
- Creates a new JXPathExpression instance
- Parameters:
expression - the JXPath expression to be evaluatedtype - the expected result type
evaluate
public <T> T evaluate(Exchange exchange,
Class<T> tClass)
- Description copied from interface:
Expression
- Returns the value of the expression on the given exchange
- Parameters:
exchange - the message exchange on which to evaluate the expressiontClass - the expected type of the evaluation result
- Returns:
- the value of the expression
assertionFailureMessage
protected String assertionFailureMessage(Exchange exchange)
- Specified by:
assertionFailureMessage in class ExpressionSupport
toString
public String toString()
- Overrides:
toString in class Object
Apache CAMEL