Package org.apache.camel.model.language
Class JsonPathExpression.Builder
- java.lang.Object
-
- org.apache.camel.model.language.TypedExpressionDefinition.AbstractBuilder<T,E>
-
- org.apache.camel.model.language.SingleInputTypedExpressionDefinition.AbstractBuilder<JsonPathExpression.Builder,JsonPathExpression>
-
- org.apache.camel.model.language.JsonPathExpression.Builder
-
- All Implemented Interfaces:
LanguageBuilder<JsonPathExpression>
- Enclosing class:
- JsonPathExpression
public static class JsonPathExpression.Builder extends SingleInputTypedExpressionDefinition.AbstractBuilder<JsonPathExpression.Builder,JsonPathExpression>
Builder
is a specific builder forJsonPathExpression
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonPathExpression.Builder
allowEasyPredicate(boolean allowEasyPredicate)
Whether to allow using the easy predicate parser to pre-parse predicates.JsonPathExpression.Builder
allowEasyPredicate(String allowEasyPredicate)
Whether to allow using the easy predicate parser to pre-parse predicates.JsonPathExpression.Builder
allowSimple(boolean allowSimple)
Whether to allow in inlined Simple exceptions in the JSONPath expressionJsonPathExpression.Builder
allowSimple(String allowSimple)
Whether to allow in inlined Simple exceptions in the JSONPath expressionJsonPathExpression
end()
Ends the build of an expression.T
expression(String expression)
The expression value in your chosen language syntaxT
id(String id)
Sets the id of this nodeJsonPathExpression.Builder
option(String option)
To configure additional options on JSONPath.T
predicate(org.apache.camel.Predicate predicate)
JsonPathExpression.Builder
suppressExceptions(boolean suppressExceptions)
Whether to suppress exceptions such as PathNotFoundException.JsonPathExpression.Builder
suppressExceptions(String suppressExceptions)
Whether to suppress exceptions such as PathNotFoundException.T
trim(boolean trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaksT
trim(String trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaksJsonPathExpression.Builder
unpackArray(boolean unpackArray)
Whether to unpack a single element json-array into an object.JsonPathExpression.Builder
unpackArray(String unpackArray)
Whether to unpack a single element json-array into an object.JsonPathExpression.Builder
writeAsString(boolean writeAsString)
Whether to write the output of each row/element as a JSON String value instead of a Map/POJO value.JsonPathExpression.Builder
writeAsString(String writeAsString)
Whether to write the output of each row/element as a JSON String value instead of a Map/POJO value.-
Methods inherited from class org.apache.camel.model.language.SingleInputTypedExpressionDefinition.AbstractBuilder
headerName, propertyName
-
Methods inherited from class org.apache.camel.model.language.TypedExpressionDefinition.AbstractBuilder
resultType, resultTypeName
-
-
-
-
Method Detail
-
suppressExceptions
public JsonPathExpression.Builder suppressExceptions(String suppressExceptions)
Whether to suppress exceptions such as PathNotFoundException.
-
suppressExceptions
public JsonPathExpression.Builder suppressExceptions(boolean suppressExceptions)
Whether to suppress exceptions such as PathNotFoundException.
-
allowSimple
public JsonPathExpression.Builder allowSimple(String allowSimple)
Whether to allow in inlined Simple exceptions in the JSONPath expression
-
allowSimple
public JsonPathExpression.Builder allowSimple(boolean allowSimple)
Whether to allow in inlined Simple exceptions in the JSONPath expression
-
allowEasyPredicate
public JsonPathExpression.Builder allowEasyPredicate(String allowEasyPredicate)
Whether to allow using the easy predicate parser to pre-parse predicates.
-
allowEasyPredicate
public JsonPathExpression.Builder allowEasyPredicate(boolean allowEasyPredicate)
Whether to allow using the easy predicate parser to pre-parse predicates.
-
writeAsString
public JsonPathExpression.Builder writeAsString(String writeAsString)
Whether to write the output of each row/element as a JSON String value instead of a Map/POJO value.
-
writeAsString
public JsonPathExpression.Builder writeAsString(boolean writeAsString)
Whether to write the output of each row/element as a JSON String value instead of a Map/POJO value.
-
unpackArray
public JsonPathExpression.Builder unpackArray(String unpackArray)
Whether to unpack a single element json-array into an object.
-
unpackArray
public JsonPathExpression.Builder unpackArray(boolean unpackArray)
Whether to unpack a single element json-array into an object.
-
option
public JsonPathExpression.Builder option(String option)
To configure additional options on JSONPath. Multiple values can be separated by comma.
-
end
public JsonPathExpression end()
Description copied from interface:LanguageBuilder
Ends the build of an expression.- Returns:
- the expression fully built.
-
id
public T id(String id)
Sets the id of this node
-
trim
public T trim(String trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks
-
trim
public T trim(boolean trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks
-
expression
public T expression(String expression)
The expression value in your chosen language syntax
-
predicate
public T predicate(org.apache.camel.Predicate predicate)
-
-