Annotation Type UonConfig
UonSerializer
and UonParser
.
Used primarily for specifying bean configuration properties on REST classes and methods.
See Also:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionAdd"_type" properties when needed.Decode"%xx" sequences.Encode non-valid URI characters.Format to use for query/form-data/header values.int
Optional rank for this config.Validate end.
-
Element Details
-
rank
int rankOptional rank for this config.Can be used to override default ordering and application of config annotations.
- Returns:
- The annotation value.
- Default:
- 0
-
decoding
Decode"%xx" sequences.Specify
"true" if URI encoded characters should be decoded,"false" if they've already been decoded before being passed to this parser."true" (default forUrlEncodingParser
)"false" (default forUonParser
)
Notes:
-
Supports VarResolver.DEFAULT (e.g.
"$C{myConfigVar}" ).
See Also:
- Returns:
- The annotation value.
- Default:
- ""
-
validateEnd
Validate end.If
"true" , after parsing a POJO from the input, verifies that the remaining input in the stream consists of only comments or whitespace."true" "false" (default)
Notes:
-
Supports VarResolver.DEFAULT (e.g.
"$C{myConfigVar}" ).
See Also:
- Returns:
- The annotation value.
- Default:
- ""
-
addBeanTypes
Add"_type" properties when needed.If
"true" , then"_type" properties will be added to beans if their type cannot be inferred through reflection.When present, this value overrides the
Serializer.Builder.addBeanTypes()
setting and is provided to customize the behavior of specific serializers in aSerializerSet
."true" "false" (default)
Notes:
-
Supports VarResolver.DEFAULT (e.g.
"$C{myConfigVar}" ).
See Also:
- Returns:
- The annotation value.
- Default:
- ""
-
encoding
Encode non-valid URI characters.Encode non-valid URI characters with
"%xx" constructs.If
"true" , non-valid URI characters will be converted to"%xx" sequences.
Set to"false" if parameter value is being passed to some other code that will already perform URL-encoding of non-valid URI characters."true" (default forUrlEncodingSerializer
)"false" (default forUonSerializer
)
Notes:
-
Supports VarResolver.DEFAULT (e.g.
"$C{myConfigVar}" ).
See Also:
- Returns:
- The annotation value.
- Default:
- ""
-
paramFormat
Format to use for query/form-data/header values.Specifies the format to use for URL GET parameter keys and values.
"UON" (default) - Use UON notation for parameters."PLAINTEXT" - Use plain text for parameters.
Notes:
-
Supports VarResolver.DEFAULT (e.g.
"$C{myConfigVar}" ).
See Also:
- Returns:
- The annotation value.
- Default:
- ""
-