Class JsonPathExpression.Builder

All Implemented Interfaces:
LanguageBuilder<JsonPathExpression>
Enclosing class:
JsonPathExpression

Builder is a specific builder for JsonPathExpression.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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

      Sets the id of this node
    • trim

      public JsonPathExpression.Builder trim(String trim)
      Whether to trim the value to remove leading and trailing whitespaces and line breaks
    • trim

      public JsonPathExpression.Builder trim(boolean trim)
      Whether to trim the value to remove leading and trailing whitespaces and line breaks
    • expression

      public JsonPathExpression.Builder expression(String expression)
      The expression value in your chosen language syntax
    • predicate

      public JsonPathExpression.Builder predicate(org.apache.camel.Predicate predicate)