Package org.kohsuke.stapler.interceptor
Annotation Interface JsonOutputFilter
@Retention(RUNTIME)
@Target({METHOD,FIELD})
@InterceptorAnnotation(Processor.class)
public @interface JsonOutputFilter
Annotation for filtering the JSON data returned from a
JavaScriptMethod
annotated method.
Put this annotation on your js proxied method and provide the properties you want filtered.- Author:
- Robert Sandell <sandell.robert@gmail.com>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Json Property filter for handling the include and exclude.static class
-
Optional Element Summary
-
Element Details
-
includes
String[] includesWhite-list of properties to include in the output.- Default:
- {}
-
excludes
String[] excludesBlack-list of properties to exclude from the output.- Default:
- {}
-
ignoreTransient
boolean ignoreTransientIf transient fields should be ignored. Default true.- See Also:
-
JsonConfig.isIgnoreTransientFields()
- Default:
- true
-
ignoreDefaultExcludes
boolean ignoreDefaultExcludesIfJsonConfig.DEFAULT_EXCLUDES
should be ignored. Default false- See Also:
-
JsonConfig.isIgnoreDefaultExcludes()
- Default:
- false
-