public enum WebSocketProtocol extends Enum<WebSocketProtocol>
| Enum Constant and Description |
|---|
WS
Websocket (non-secure)
|
WSS
Websocket (secure)
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MAJOR_VERSION |
static int |
MINOR_VERSION |
| Modifier and Type | Method and Description |
|---|---|
static WebSocketProtocol |
getEnumValue(Integer ordinal)
Get the matching enum for an ordinal number
|
Integer |
getOrdinal()
Get the matching ordinal number for this enum
|
static WebSocketProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketProtocol WS
public static final WebSocketProtocol WSS
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public static WebSocketProtocol[] values()
for (WebSocketProtocol c : WebSocketProtocol.values()) System.out.println(c);
public static WebSocketProtocol 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 static WebSocketProtocol getEnumValue(Integer ordinal)
ordinal - The ordinal numberpublic Integer getOrdinal()
Copyright © 2021. All rights reserved.