@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 |
---|---|
protected void |
configureExpression(org.apache.camel.CamelContext camelContext,
org.apache.camel.Expression expression) |
protected void |
configurePredicate(org.apache.camel.CamelContext camelContext,
org.apache.camel.Predicate predicate) |
org.apache.camel.Expression |
createExpression(org.apache.camel.CamelContext camelContext) |
Boolean |
getAllowEasyPredicate() |
Boolean |
getAllowSimple() |
String |
getHeaderName() |
String |
getLanguage() |
Class<?> |
getResultType() |
String |
getResultTypeName() |
Boolean |
getSuppressExceptions() |
Boolean |
getWriteAsString() |
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 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(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.
|
assertMatches, createExpression, createPredicate, createPredicate, evaluate, evaluate, getExpression, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getOtherAttributes, getPredicate, getTrim, matches, setExpression, setExpressionType, setExpressionValue, setId, setOtherAttributes, setProperty, setTrim, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptions
public JsonPathExpression()
public JsonPathExpression(String expression)
public String getResultTypeName()
public void setResultTypeName(String resultTypeName)
public Class<?> getResultType()
public void setResultType(Class<?> resultType)
public Boolean getSuppressExceptions()
public Boolean getAllowSimple()
public void setAllowSimple(Boolean allowSimple)
public Boolean getAllowEasyPredicate()
public void setAllowEasyPredicate(Boolean allowEasyPredicate)
public void setSuppressExceptions(Boolean suppressExceptions)
public Boolean getWriteAsString()
public void setWriteAsString(Boolean writeAsString)
public String getHeaderName()
public void setHeaderName(String headerName)
public String getLanguage()
getLanguage
in class ExpressionDefinition
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext)
createExpression
in interface org.apache.camel.ExpressionFactory
createExpression
in class ExpressionDefinition
protected void configureExpression(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression)
configureExpression
in class ExpressionDefinition
protected void configurePredicate(org.apache.camel.CamelContext camelContext, org.apache.camel.Predicate predicate)
configurePredicate
in class ExpressionDefinition
Apache Camel