public enum ProtocolNegotiation extends Enum<ProtocolNegotiation>
| Enum Constant and Description |
|---|
ALPN
Uses Application Level Protocol Negotiation
|
ASSUME_PROTOCOL
Uses prior knowledge
|
| Modifier and Type | Method and Description |
|---|---|
static ProtocolNegotiation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolNegotiation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolNegotiation ASSUME_PROTOCOL
public static final ProtocolNegotiation ALPN
public static ProtocolNegotiation[] values()
for (ProtocolNegotiation c : ProtocolNegotiation.values()) System.out.println(c);
public static ProtocolNegotiation 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 © 2026. All rights reserved.