Enum H2UpgradePolicy
- java.lang.Object
-
- java.lang.Enum<H2UpgradePolicy>
-
- me.snowdrop.istio.api.networking.v1beta1.H2UpgradePolicy
-
- All Implemented Interfaces:
Serializable,Comparable<H2UpgradePolicy>
public enum H2UpgradePolicy extends Enum<H2UpgradePolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULTUse the global default.DO_NOT_UPGRADEDo not upgrade the connection to http2.UPGRADEUpgrade the connection to http2.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intvalue()static H2UpgradePolicyvalueOf(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.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final H2UpgradePolicy DEFAULT
Use the global default.
-
DO_NOT_UPGRADE
public static final H2UpgradePolicy DO_NOT_UPGRADE
Do not upgrade the connection to http2. This opt-out option overrides the default.
-
UPGRADE
public static final H2UpgradePolicy UPGRADE
Upgrade the connection to http2. This opt-in option overrides the default.
-
-
Method Detail
-
values
public static H2UpgradePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (H2UpgradePolicy c : H2UpgradePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static H2UpgradePolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public int value()
-
-