public enum ProtocolVersion extends Enum<ProtocolVersion>
Modifier and Type | Field and Description |
---|---|
static ProtocolVersion |
DEFAULT_PROTOCOL_VERSION |
static ProtocolVersion |
HIGHEST_PROTOCOL_VERSION |
Modifier and Type | Method and Description |
---|---|
static ProtocolVersion |
getBestVersion(int version) |
Codec |
getCodec() |
int |
getVersion() |
static ProtocolVersion |
parseVersion(String version) |
String |
toString() |
static ProtocolVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolVersion PROTOCOL_VERSION_20
public static final ProtocolVersion PROTOCOL_VERSION_21
public static final ProtocolVersion PROTOCOL_VERSION_22
public static final ProtocolVersion PROTOCOL_VERSION_23
public static final ProtocolVersion PROTOCOL_VERSION_24
public static final ProtocolVersion PROTOCOL_VERSION_25
public static final ProtocolVersion PROTOCOL_VERSION_26
public static final ProtocolVersion PROTOCOL_VERSION_27
public static final ProtocolVersion PROTOCOL_VERSION_28
public static final ProtocolVersion PROTOCOL_VERSION_29
public static final ProtocolVersion PROTOCOL_VERSION_30
public static final ProtocolVersion PROTOCOL_VERSION_AUTO
public static final ProtocolVersion DEFAULT_PROTOCOL_VERSION
public static final ProtocolVersion HIGHEST_PROTOCOL_VERSION
public static ProtocolVersion[] values()
for (ProtocolVersion c : ProtocolVersion.values()) System.out.println(c);
public static ProtocolVersion 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 nullpublic String toString()
toString
in class Enum<ProtocolVersion>
public int getVersion()
public Codec getCodec()
public static ProtocolVersion parseVersion(String version)
public static ProtocolVersion getBestVersion(int version)
Copyright © 2021 JBoss by Red Hat. All rights reserved.