public enum QueryParamStyle extends java.lang.Enum<QueryParamStyle>
public interface MultiParamClient {
void sendMultipleQueryParams(@QueryParam("foo") List<String> strings);
}
The style selected when building this client instance will determine the format
of the query portion of the URI.| Enum Constant and Description |
|---|
ARRAY_PAIRS
Multiple parameter instances with square brackets for each parameter, e.g.:
foo[]=v1&foo[]=v2&foo[]=v3 |
COMMA_SEPARATED
A single parameter instance with multiple, comma-separated values, e.g.:
foo=v1,v2,v3 |
MULTI_PAIRS
Multiple parameter instances, e.g.:
foo=v1&foot=v2&foo=v3
This is the default if no style is configured. |
| Modifier and Type | Method and Description |
|---|---|
static QueryParamStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QueryParamStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueryParamStyle MULTI_PAIRS
foo=v1&foot=v2&foo=v3
This is the default if no style is configured.public static final QueryParamStyle COMMA_SEPARATED
foo=v1,v2,v3public static final QueryParamStyle ARRAY_PAIRS
foo[]=v1&foo[]=v2&foo[]=v3public static QueryParamStyle[] values()
for (QueryParamStyle c : QueryParamStyle.values()) System.out.println(c);
public static QueryParamStyle valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null