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) |
com.jayway.jsonpath.Option[] |
getOptions() |
Class<?> |
getResultType() |
void |
init() |
boolean |
isSuppressExceptions() |
void |
setOptions(com.jayway.jsonpath.Option[] options)
To configure the json path options to use
|
void |
setResultType(Class<?> resultType)
To configure the result type to use
|
void |
setSuppressExceptions(boolean suppressExceptions)
Whether to suppress exceptions such as PathNotFoundException
|
String |
toString() |
public JsonPathExpression(String expression)
public Class<?> getResultType()
public void setResultType(Class<?> resultType)
public boolean isSuppressExceptions()
public void setSuppressExceptions(boolean suppressExceptions)
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.ExpressionSupport
public void afterPropertiesConfigured(org.apache.camel.CamelContext camelContext)
afterPropertiesConfigured
in interface org.apache.camel.AfterPropertiesConfigured
public void init()
Apache Camel