Annotation Interface UonConfig
UonSerializer and UonParser.
Used primarily for specifying bean configuration properties on REST classes and methods.
See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAdd"_type" properties when needed.Decode"%xx" sequences.Encode non-valid URI characters.Format to use for query/form-data/header values.intOptional rank for this config.Validate end.
-
Element Details
-
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:
- ""
-
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:
- ""
-
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:
- ""
-
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
-
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:
- ""
-