org.apache.camel.language.jxpath
Class JXPathExpression

java.lang.Object
  extended by org.apache.camel.impl.ExpressionSupport
      extended by org.apache.camel.language.jxpath.JXPathExpression
All Implemented Interfaces:
Expression, Predicate

public class JXPathExpression
extends ExpressionSupport

JXPath Expression support


Constructor Summary
JXPathExpression(String expression, Class<?> type)
          Creates a new JXPathExpression instance
 
Method Summary
protected  String assertionFailureMessage(Exchange exchange)
           
<T> T
evaluate(Exchange exchange, Class<T> tClass)
          Returns the value of the expression on the given exchange
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.ExpressionSupport
assertMatches, evaluate, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JXPathExpression

public JXPathExpression(String expression,
                        Class<?> type)
Creates a new JXPathExpression instance

Parameters:
expression - the JXPath expression to be evaluated
type - the expected result type
Method Detail

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 expression
tClass - 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