public static enum HttpClientUpgradeHandler.UpgradeEvent extends java.lang.Enum<HttpClientUpgradeHandler.UpgradeEvent>
Enum Constant and Description |
---|
UPGRADE_ISSUED
升级请求已发送到服务器。
|
UPGRADE_REJECTED
由于服务器未发出101交换协议响应,升级失败。
|
UPGRADE_SUCCESSFUL
升级到新协议是成功的。
|
Modifier and Type | Method and Description |
---|---|
static HttpClientUpgradeHandler.UpgradeEvent |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static HttpClientUpgradeHandler.UpgradeEvent[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
public static final HttpClientUpgradeHandler.UpgradeEvent UPGRADE_ISSUED
public static final HttpClientUpgradeHandler.UpgradeEvent UPGRADE_SUCCESSFUL
public static final HttpClientUpgradeHandler.UpgradeEvent UPGRADE_REJECTED
public static HttpClientUpgradeHandler.UpgradeEvent[] values()
for (HttpClientUpgradeHandler.UpgradeEvent c : HttpClientUpgradeHandler.UpgradeEvent.values())
System.out.println(c);
public static HttpClientUpgradeHandler.UpgradeEvent valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
java.lang.NullPointerException
- 如果参数为null
Copyright © 2008–2018 The Netty Project. All rights reserved.