Annotation Interface UonConfig


Annotation for specifying config properties defined in UonSerializer and UonParser.

Used primarily for specifying bean configuration properties on REST classes and methods.

See Also:
  • 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 a SerializerSet.

      • "true"
      • "false" (default)
      Notes:
      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.

      Notes:
      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.

      Notes:
      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:
      See Also:
      Returns:
      The annotation value.
      Default:
      ""
    • rank

      int rank
      Optional 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:
      See Also:
      Returns:
      The annotation value.
      Default:
      ""