public static enum WebSocketClientProtocolHandler.ClientHandshakeStateEvent extends java.lang.Enum<WebSocketClientProtocolHandler.ClientHandshakeStateEvent>
Enum Constant and Description |
---|
HANDSHAKE_COMPLETE
握手是完全成功的,所以通道升级为websockets
|
HANDSHAKE_ISSUED
握手已经开始,但服务器尚未响应请求
|
Modifier and Type | Method and Description |
---|---|
static WebSocketClientProtocolHandler.ClientHandshakeStateEvent |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static WebSocketClientProtocolHandler.ClientHandshakeStateEvent[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
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
- 如果参数为空
Copyright © 2008–2018 The Netty Project. All rights reserved.