public enum H2UpgradePolicy extends Enum<H2UpgradePolicy>
| Enum Constant and Description |
|---|
DEFAULT
Use the global default.
|
DO_NOT_UPGRADE
Do not upgrade the connection to http2.
|
UPGRADE
Upgrade the connection to http2.
|
| Modifier and Type | Method and Description |
|---|---|
int |
value() |
static H2UpgradePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static H2UpgradePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final H2UpgradePolicy DEFAULT
public static final H2UpgradePolicy DO_NOT_UPGRADE
public static final H2UpgradePolicy UPGRADE
public static H2UpgradePolicy[] values()
for (H2UpgradePolicy c : H2UpgradePolicy.values()) System.out.println(c);
public static H2UpgradePolicy 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 int value()
Copyright © 2017–2020 Red Hat. All rights reserved.