@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:06.475Z") @Stability(value=Experimental) public enum AlpnPolicy extends Enum<AlpnPolicy>
Which protocols should be used over a secure connection.
| Enum Constant and Description |
|---|
HTTP1_ONLY
(experimental) Negotiate only HTTP/1.*.
|
HTTP2_ONLY
(experimental) Negotiate only HTTP/2.
|
HTTP2_OPTIONAL
(experimental) Prefer HTTP/1.* over HTTP/2 (which can be useful for HTTP/2 testing).
|
HTTP2_PREFERRED
(experimental) Prefer HTTP/2 over HTTP/1.*.
|
NONE
(experimental) 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=Experimental) public static final AlpnPolicy HTTP1_ONLY
@Stability(value=Experimental) public static final AlpnPolicy HTTP2_ONLY
The ALPN preference list is h2
@Stability(value=Experimental) public static final AlpnPolicy HTTP2_OPTIONAL
@Stability(value=Experimental) public static final AlpnPolicy HTTP2_PREFERRED
@Stability(value=Experimental) 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.