public enum HttpVersionPolicy extends Enum<HttpVersionPolicy>
Enum Constant and Description |
---|
FORCE_HTTP_1 |
FORCE_HTTP_2 |
NEGOTIATE |
Modifier and Type | Method and Description |
---|---|
static HttpVersionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpVersionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpVersionPolicy FORCE_HTTP_1
public static final HttpVersionPolicy FORCE_HTTP_2
public static final HttpVersionPolicy NEGOTIATE
public static HttpVersionPolicy 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 nullpublic static HttpVersionPolicy[] values()
for (HttpVersionPolicy c : HttpVersionPolicy.values()) System.out.println(c);