Top Description Fields Constructors Methods
org.eclipse.microprofile.rest.client.ext

public final Enum QueryParamStyle

extends Enum<QueryParamStyle>
Class Inheritance

A QueryParamStyle enum is used to specify how multiple values are handled when constructing the query portion of the URI. For example, a client interface may take a collection of strings as it's query parameter. This enum determines the style:
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.
Since
2.0

Field Summary

Modifier and TypeField and Description
public static final QueryParamStyle
ARRAY_PAIRS

Multiple parameter instances with square brackets for each parameter, e.g.: foo[]=v1&foo[]=v2&foo[]=v3

public static final QueryParamStyle
COMMA_SEPARATED

A single parameter instance with multiple, comma-separated values, e.g.: foo=v1,v2,v3

public static final QueryParamStyle
MULTI_PAIRS

Multiple parameter instances, e.g.: foo=v1&foot=v2&foo=v3 This is the default if no style is configured.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static QueryParamStyle
public static QueryParamStyle[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ARRAY_PAIRSback to summary
public static final QueryParamStyle ARRAY_PAIRS

Multiple parameter instances with square brackets for each parameter, e.g.: foo[]=v1&foo[]=v2&foo[]=v3

COMMA_SEPARATEDback to summary
public static final QueryParamStyle COMMA_SEPARATED

A single parameter instance with multiple, comma-separated values, e.g.: foo=v1,v2,v3

MULTI_PAIRSback to summary
public static final QueryParamStyle MULTI_PAIRS

Multiple parameter instances, e.g.: foo=v1&foot=v2&foo=v3 This is the default if no style is configured.

Constructor Detail

QueryParamStyleback to summary
private QueryParamStyle()

Method Detail

valueOfback to summary
public static QueryParamStyle valueOf(String name)
valuesback to summary
public static QueryParamStyle[] values()