Annotation Interface Delimiter


@Retention(RUNTIME) @Target({PARAMETER,FIELD,METHOD,CONSTRUCTOR}) public @interface Delimiter
Specifies a delimiter of a parameter.

The Delimiter annotation has precedence over annotated service settings.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    A delimiter to use when the request parameter is resolved to collection type and the number of values of the request parameter is one.
  • Element Details

    • value

      String value
      A delimiter to use when the request parameter is resolved to collection type and the number of values of the request parameter is one. When Delimiter annotation exists but value() is not specified, the parameter would not be delimited.

      Note that the Delimiter annotation is only allowed for a query parameter.

      Default:
      "\n\t\t\n\t\t\n\u0000\u0001\u0002\n\t\t\t\t\n"