public enum JerseyQueryParamStyle extends Enum<JerseyQueryParamStyle>
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&foo=v2&foo=v3
This is the default query format. |
Modifier and Type | Method and Description |
---|---|
static JerseyQueryParamStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JerseyQueryParamStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JerseyQueryParamStyle MULTI_PAIRS
foo=v1&foo=v2&foo=v3
This is the default query format.public static final JerseyQueryParamStyle COMMA_SEPARATED
foo=v1,v2,v3
public static final JerseyQueryParamStyle ARRAY_PAIRS
foo[]=v1&foo[]=v2&foo[]=v3
public static JerseyQueryParamStyle[] values()
for (JerseyQueryParamStyle c : JerseyQueryParamStyle.values()) System.out.println(c);
public static JerseyQueryParamStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.