Enum AlpnPolicy
- All Implemented Interfaces:
Serializable
,Comparable<AlpnPolicy>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:15.174Z")
@Stability(Stable)
public enum AlpnPolicy
extends Enum<AlpnPolicy>
Application-Layer Protocol Negotiation Policies for network load balancers.
Which protocols should be used over a secure connection.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNegotiate only HTTP/1.*.Negotiate only HTTP/2.Prefer HTTP/1.* over HTTP/2 (which can be useful for HTTP/2 testing).Prefer HTTP/2 over HTTP/1.*.Do not negotiate ALPN. -
Method Summary
Modifier and TypeMethodDescriptionstatic AlpnPolicy
Returns the enum constant of this type with the specified name.static AlpnPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HTTP1_ONLY
Negotiate only HTTP/1.*. The ALPN preference list is http/1.1, http/1.0. -
HTTP2_ONLY
Negotiate only HTTP/2.The ALPN preference list is h2
-
HTTP2_OPTIONAL
Prefer HTTP/1.* over HTTP/2 (which can be useful for HTTP/2 testing). The ALPN preference list is http/1.1, http/1.0, h2. -
HTTP2_PREFERRED
Prefer HTTP/2 over HTTP/1.*. The ALPN preference list is h2, http/1.1, http/1.0. -
NONE
Do not negotiate ALPN.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-