Package org.glassfish.jersey.uri
Enum Class JerseyQueryParamStyle
- All Implemented Interfaces:
Serializable
,Comparable<JerseyQueryParamStyle>
,java.lang.constant.Constable
JerseyQueryParamStyle is used to specify the desired format of query param
when multiple values are sent for the same parameter.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMultiple parameter instances with square brackets for each parameter, e.g.:foo[]=v1&foo[]=v2&foo[]=v3
A single parameter instance with multiple, comma-separated values, e.g.:foo=v1,v2,v3
Multiple parameter instances, e.g.:foo=v1&foo=v2&foo=v3
This is the default query format. -
Method Summary
Modifier and TypeMethodDescriptionstatic JerseyQueryParamStyle
Returns the enum constant of this class with the specified name.static JerseyQueryParamStyle[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MULTI_PAIRS
Multiple parameter instances, e.g.:foo=v1&foo=v2&foo=v3
This is the default query format. -
COMMA_SEPARATED
A single parameter instance with multiple, comma-separated values, e.g.:foo=v1,v2,v3
-
ARRAY_PAIRS
Multiple parameter instances with square brackets for each parameter, e.g.:foo[]=v1&foo[]=v2&foo[]=v3
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-