@Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) @InterceptorAnnotation(value=JsonOutputFilter.Processor.class) public @interface JsonOutputFilter
JavaScriptMethod
annotated method.
Put this annotation on your js proxied method and provide the properties you want filtered.Modifier and Type | Optional Element and Description |
---|---|
String[] |
excludes
Black-list of properties to exclude from the output.
|
boolean |
ignoreDefaultExcludes
If
JsonConfig.DEFAULT_EXCLUDES should be ignored. |
boolean |
ignoreTransient
If transient fields should be ignored.
|
String[] |
includes
White-list of properties to include in the output.
|
public abstract boolean ignoreTransient
JsonConfig.isIgnoreTransientFields()
public abstract boolean ignoreDefaultExcludes
JsonConfig.DEFAULT_EXCLUDES
should be ignored. Default falseJsonConfig.isIgnoreDefaultExcludes()
Copyright © 2018. All rights reserved.