Package org.apache.camel.model.language
Class JsonPathExpression.Builder
java.lang.Object
org.apache.camel.model.language.ExpressionDefinition.AbstractBuilder<JsonPathExpression.Builder,JsonPathExpression>
org.apache.camel.model.language.TypedExpressionDefinition.AbstractBuilder<JsonPathExpression.Builder,JsonPathExpression>
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
Constructors -
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.To configure additional options on JSONPath.option(JsonPathExpression.Option... options) To configure additional options on JSONPath.suppressExceptions(boolean suppressExceptions) Whether to suppress exceptions such as PathNotFoundException.suppressExceptions(String suppressExceptions) Whether to suppress exceptions such as PathNotFoundException.unpackArray(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, source, variableNameMethods inherited from class org.apache.camel.model.language.TypedExpressionDefinition.AbstractBuilder
resultType, resultTypeNameMethods inherited from class org.apache.camel.model.language.ExpressionDefinition.AbstractBuilder
expression, id, predicate, trim, trim
-
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. -
option
To configure additional options on JSONPath. -
end
Description copied from interface:LanguageBuilderEnds the build of an expression.- Returns:
- the expression fully built.
-