public class JsonPathExpression
extends org.apache.camel.support.ExpressionAdapter
implements org.apache.camel.AfterPropertiesConfigured
| Constructor and Description |
|---|
JsonPathExpression(String expression) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesConfigured(org.apache.camel.CamelContext camelContext) |
Object |
evaluate(org.apache.camel.Exchange exchange) |
String |
getHeaderName() |
com.jayway.jsonpath.Option[] |
getOptions() |
Class<?> |
getResultType() |
void |
init() |
boolean |
isAllowEasyPredicate() |
boolean |
isAllowSimple() |
boolean |
isPredicate() |
boolean |
isSuppressExceptions() |
boolean |
isWriteAsString() |
void |
setAllowEasyPredicate(boolean allowEasyPredicate)
Whether to allow using the easy predicate parser to pre-parse predicates.
|
void |
setAllowSimple(boolean allowSimple)
Whether to allow in inlined simple exceptions in the json path expression
|
void |
setHeaderName(String headerName)
Name of header to use as input, instead of the message body
|
void |
setOptions(com.jayway.jsonpath.Option[] options)
To configure the json path options to use
|
void |
setPredicate(boolean predicate)
Whether to be evaluated as a predicate
|
void |
setResultType(Class<?> resultType)
To configure the result type to use
|
void |
setSuppressExceptions(boolean suppressExceptions)
Whether to suppress exceptions such as PathNotFoundException
|
void |
setWriteAsString(boolean writeAsString)
Whether to write the output of each row/element as a JSon String value instead of a Map/POJO value.
|
String |
toString() |
public JsonPathExpression(String expression)
public boolean isPredicate()
public void setPredicate(boolean predicate)
public Class<?> getResultType()
public void setResultType(Class<?> resultType)
public boolean isSuppressExceptions()
public void setSuppressExceptions(boolean suppressExceptions)
public boolean isAllowSimple()
public void setAllowSimple(boolean allowSimple)
public boolean isAllowEasyPredicate()
public void setAllowEasyPredicate(boolean allowEasyPredicate)
EasyPredicateParser for more details.public boolean isWriteAsString()
public void setWriteAsString(boolean writeAsString)
public String getHeaderName()
public void setHeaderName(String headerName)
public com.jayway.jsonpath.Option[] getOptions()
public void setOptions(com.jayway.jsonpath.Option[] options)
public Object evaluate(org.apache.camel.Exchange exchange)
evaluate in class org.apache.camel.support.ExpressionSupportpublic void afterPropertiesConfigured(org.apache.camel.CamelContext camelContext)
afterPropertiesConfigured in interface org.apache.camel.AfterPropertiesConfiguredpublic void init()
Apache Camel