public static enum WebSocketClientProtocolHandler.ClientHandshakeStateEvent extends java.lang.Enum<WebSocketClientProtocolHandler.ClientHandshakeStateEvent>
枚举常量和说明 |
---|
HANDSHAKE_COMPLETE
The Handshake was complete successful and so the channel was upgraded to websockets
|
HANDSHAKE_ISSUED
The Handshake was started but the server did not response yet to the request
|
HANDSHAKE_TIMEOUT
The Handshake was timed out
|
限定符和类型 | 方法和说明 |
---|---|
static WebSocketClientProtocolHandler.ClientHandshakeStateEvent |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static WebSocketClientProtocolHandler.ClientHandshakeStateEvent[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final WebSocketClientProtocolHandler.ClientHandshakeStateEvent HANDSHAKE_TIMEOUT
public static final WebSocketClientProtocolHandler.ClientHandshakeStateEvent HANDSHAKE_ISSUED
public static final WebSocketClientProtocolHandler.ClientHandshakeStateEvent HANDSHAKE_COMPLETE
public static WebSocketClientProtocolHandler.ClientHandshakeStateEvent[] values()
for (WebSocketClientProtocolHandler.ClientHandshakeStateEvent c : WebSocketClientProtocolHandler.ClientHandshakeStateEvent.values()) System.out.println(c);
public static WebSocketClientProtocolHandler.ClientHandshakeStateEvent valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值