use of org.apache.camel.jsonpath.easypredicate.EasyPredicateParser in project camel by apache.
the class JsonPathExpression method init.
public void init() {
String exp = expression;
if (predicate && isAllowEasyPredicate()) {
EasyPredicateParser parser = new EasyPredicateParser();
exp = parser.parse(expression);
if (!exp.equals(expression)) {
LOG.debug("EasyPredicateParser parsed {} -> {}", expression, exp);
}
}
LOG.debug("Initializing {} using: {}", predicate ? "predicate" : "expression", exp);
try {
engine = new JsonPathEngine(exp, suppressExceptions, allowSimple, options);
} catch (Exception e) {
throw new ExpressionIllegalSyntaxException(exp, e);
}
}
Aggregations