@Metadata(firstVersion="2.13.0",
label="language,json",
title="JsonPath")
public class JsonPathExpression
extends ExpressionDefinition
| Constructor and Description |
|---|
JsonPathExpression() |
JsonPathExpression(String expression) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAllowEasyPredicate() |
String |
getAllowSimple() |
String |
getHeaderName() |
String |
getLanguage() |
Class<?> |
getResultType() |
String |
getResultTypeName() |
String |
getSuppressExceptions() |
String |
getWriteAsString() |
void |
setAllowEasyPredicate(String allowEasyPredicate)
Whether to allow using the easy predicate parser to pre-parse predicates.
|
void |
setAllowSimple(String allowSimple)
Whether to allow in inlined simple exceptions in the JsonPath expression
|
void |
setHeaderName(String headerName)
Name of header to use as input, instead of the message body
|
void |
setResultType(Class<?> resultType)
Sets the class of the result type (type from output)
|
void |
setResultTypeName(String resultTypeName)
Sets the class name of the result type (type from output)
|
void |
setSuppressExceptions(String suppressExceptions)
Whether to suppress exceptions such as PathNotFoundException.
|
void |
setWriteAsString(String writeAsString)
Whether to write the output of each row/element as a JSON String value
instead of a Map/POJO value.
|
createExpression, evaluate, getExpression, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getPredicate, getTrim, matches, setExpression, setExpressionType, setExpressionValue, setId, setTrim, toStringpublic JsonPathExpression()
public JsonPathExpression(String expression)
public String getResultTypeName()
public void setResultTypeName(String resultTypeName)
public Class<?> getResultType()
public void setResultType(Class<?> resultType)
public String getSuppressExceptions()
public String getAllowSimple()
public void setAllowSimple(String allowSimple)
public String getAllowEasyPredicate()
public void setAllowEasyPredicate(String allowEasyPredicate)
public void setSuppressExceptions(String suppressExceptions)
public String getWriteAsString()
public void setWriteAsString(String writeAsString)
public String getHeaderName()
public void setHeaderName(String headerName)
public String getLanguage()
getLanguage in class ExpressionDefinitionApache Camel