Package org.apache.camel.jsonpath
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
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Whether to allow in inlined simple exceptions in the JsonPath expressioncom.jayway.jsonpath.Option[]
To configure the JsonPath options to useClass<?>
The desired return type.boolean
Whether to suppress exceptions such as PathNotFoundException
-
Element Details
-
value
String value
-
-
-
suppressExceptions
boolean suppressExceptionsWhether to suppress exceptions such as PathNotFoundException- Default:
- false
-
allowSimple
boolean allowSimpleWhether to allow in inlined simple exceptions in the JsonPath expression- Default:
- true
-
options
com.jayway.jsonpath.Option[] optionsTo configure the JsonPath options to use- Default:
- {}
-
resultType
Class<?> resultTypeThe desired return type.- Default:
- java.lang.Object.class
-
headerName
String headerName- Returns:
- The name of the header we want to apply the expression to. If this is empty then the expression will be applied to the value of the exchange property or the body instead.
- Default:
- ""
-
propertyName
String propertyName- Returns:
- The name of the property we want to apply the expression to. If this is empty then the expression will be applied to the body instead.
- Default:
- ""
-