Annotation Interface JsonPath


@Retention(RUNTIME) @Documented @Target({FIELD,METHOD,PARAMETER}) @LanguageAnnotation(language="jsonpath", factory=JsonPathAnnotationExpressionFactory.class) public @interface JsonPath
An annotation used to inject a JsonPath expression into a method parameter when using Bean Integration
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether to allow in inlined simple exceptions in the JsonPath expression
    com.jayway.jsonpath.Option[]
    To configure the JsonPath options to use
    The desired return type.
    Source to use, instead of message body.
    boolean
    Whether to suppress exceptions such as PathNotFoundException
  • Element Details

    • value

      String value
    • suppressExceptions

      boolean suppressExceptions
      Whether to suppress exceptions such as PathNotFoundException
      Default:
      false
    • allowSimple

      boolean allowSimple
      Whether to allow in inlined simple exceptions in the JsonPath expression
      Default:
      true
    • options

      com.jayway.jsonpath.Option[] options
      To configure the JsonPath options to use
      Default:
      {}
    • resultType

      Class<?> resultType
      The desired return type.
      Default:
      java.lang.Object.class
    • source

      String source
      Source to use, instead of message body. You can prefix with variable:, header:, or property: to specify kind of source. Otherwise, the source is assumed to be a variable. Use empty or null to use default source, which is the message body.
      Default:
      ""