org.apache.camel.language.jxpath
Class JXPathExpression
java.lang.Object
org.apache.camel.support.ExpressionSupport
org.apache.camel.language.jxpath.JXPathExpression
- All Implemented Interfaces:
- org.apache.camel.Expression, org.apache.camel.Predicate
public class JXPathExpression
- extends org.apache.camel.support.ExpressionSupport
JXPath Expression
support
Methods inherited from class org.apache.camel.support.ExpressionSupport |
assertMatches, evaluate, matches |
JXPathExpression
public JXPathExpression(String expression,
Class<?> type)
- Creates a new JXPathExpression instance (lenient is disabled)
- Parameters:
expression
- the JXPath expression to be evaluatedtype
- the expected result type
JXPathExpression
public JXPathExpression(String expression,
Class<?> type,
boolean lenient)
- Creates a new JXPathExpression instance
- Parameters:
expression
- the JXPath expression to be evaluatedtype
- the expected result typelenient
- to configure lenient
isLenient
public boolean isLenient()
setLenient
public void setLenient(boolean lenient)
evaluate
public <T> T evaluate(org.apache.camel.Exchange exchange,
Class<T> tClass)
assertionFailureMessage
protected String assertionFailureMessage(org.apache.camel.Exchange exchange)
- Specified by:
assertionFailureMessage
in class org.apache.camel.support.ExpressionSupport
toString
public String toString()
- Overrides:
toString
in class Object
Apache CAMEL