@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.051Z") @Stability(value=Stable) public enum AlpnPolicy extends Enum<AlpnPolicy>
Which protocols should be used over a secure connection.
| Enum Constant and Description |
|---|
HTTP1_ONLY
Negotiate only HTTP/1.*.
|
HTTP2_ONLY
Negotiate only HTTP/2.
|
HTTP2_OPTIONAL
Prefer HTTP/1.* over HTTP/2 (which can be useful for HTTP/2 testing).
|
HTTP2_PREFERRED
Prefer HTTP/2 over HTTP/1.*.
|
NONE
Do not negotiate ALPN.
|
| Modifier and Type | Method and Description |
|---|---|
static AlpnPolicy |
valueOf(String name)
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.
|
@Stability(value=Stable) public static final AlpnPolicy HTTP1_ONLY
@Stability(value=Stable) public static final AlpnPolicy HTTP2_ONLY
The ALPN preference list is h2
@Stability(value=Stable) public static final AlpnPolicy HTTP2_OPTIONAL
@Stability(value=Stable) public static final AlpnPolicy HTTP2_PREFERRED
@Stability(value=Stable) public static final AlpnPolicy NONE
public static AlpnPolicy[] values()
for (AlpnPolicy c : AlpnPolicy.values()) System.out.println(c);
public static AlpnPolicy 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 nullCopyright © 2022. All rights reserved.