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 for JsonPathExpression
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowEasyPredicate
(boolean allowEasyPredicate) Whether to allow using the easy predicate parser to pre-parse predicates.allowEasyPredicate
(String allowEasyPredicate) Whether to allow using the easy predicate parser to pre-parse predicates.allowSimple
(boolean allowSimple) Whether to allow in inlined Simple exceptions in the JSONPath expressionallowSimple
(String allowSimple) Whether to allow in inlined Simple exceptions in the JSONPath expressionend()
Ends the build of an expression.expression
(String expression) The expression value in your chosen language syntaxSets the id of this nodeTo configure additional options on JSONPath.predicate
(org.apache.camel.Predicate predicate) suppressExceptions
(boolean suppressExceptions) Whether to suppress exceptions such as PathNotFoundException.suppressExceptions
(String suppressExceptions) Whether to suppress exceptions such as PathNotFoundException.trim
(boolean trim) Whether to trim the value to remove leading and trailing whitespaces and line breaksWhether to trim the value to remove leading and trailing whitespaces and line breaksunpackArray
(boolean unpackArray) Whether to unpack a single element json-array into an object.unpackArray
(String unpackArray) Whether to unpack a single element json-array into an object.writeAsString
(boolean writeAsString) Whether to write the output of each row/element as a JSON String value instead of a Map/POJO value.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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
suppressExceptions
Whether to suppress exceptions such as PathNotFoundException. -
suppressExceptions
Whether to suppress exceptions such as PathNotFoundException. -
allowSimple
Whether to allow in inlined Simple exceptions in the JSONPath expression -
allowSimple
Whether to allow in inlined Simple exceptions in the JSONPath expression -
allowEasyPredicate
Whether to allow using the easy predicate parser to pre-parse predicates. -
allowEasyPredicate
Whether to allow using the easy predicate parser to pre-parse predicates. -
writeAsString
Whether to write the output of each row/element as a JSON String value instead of a Map/POJO value. -
writeAsString
Whether to write the output of each row/element as a JSON String value instead of a Map/POJO value. -
unpackArray
Whether to unpack a single element json-array into an object. -
unpackArray
Whether to unpack a single element json-array into an object. -
option
To configure additional options on JSONPath. Multiple values can be separated by comma. -
end
Description copied from interface:LanguageBuilder
Ends the build of an expression.- Returns:
- the expression fully built.
-
id
Sets the id of this node -
trim
Whether to trim the value to remove leading and trailing whitespaces and line breaks -
trim
Whether to trim the value to remove leading and trailing whitespaces and line breaks -
expression
The expression value in your chosen language syntax -
predicate
-