Annotation Interface UrlEncoding
@Documented
@Target({TYPE,FIELD,METHOD})
@Retention(RUNTIME)
@Inherited
public @interface UrlEncoding
Annotation that can be applied to classes, fields, and methods to tweak how they are handled by
UrlEncodingSerializer and UrlEncodingParser.
Can be used in the following locations:
- Marshalled classes/methods/fields.
@Rest -annotated classes and@RestOp -annotated methods when used with@UrlEncodingApply.
See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Optional description for the exposed API.booleanWhen true, bean properties of type array or Collection will be expanded into multiple key/value pairings.
-
Element Details
-
description
Optional description for the exposed API.- Returns:
- The annotation value.
- Since:
- 9.2.0
- Default:
- {}
-
expandedParams
boolean expandedParamsWhen true, bean properties of type array or Collection will be expanded into multiple key/value pairings.This annotation is identical in behavior to using the
UrlEncodingSerializer.Builder.expandedParams()andUrlEncodingParser.Builder.expandedParams()properties, but applies to only instances of this bean.- Returns:
- The annotation value.
- Default:
- false
-