@UnstableApi public enum Http2Error extends java.lang.Enum<Http2Error>
Enum Constant and Description |
---|
CANCEL |
COMPRESSION_ERROR |
CONNECT_ERROR |
ENHANCE_YOUR_CALM |
FLOW_CONTROL_ERROR |
FRAME_SIZE_ERROR |
HTTP_1_1_REQUIRED |
INADEQUATE_SECURITY |
INTERNAL_ERROR |
NO_ERROR |
PROTOCOL_ERROR |
REFUSED_STREAM |
SETTINGS_TIMEOUT |
STREAM_CLOSED |
Modifier and Type | Method and Description |
---|---|
long |
code()
获取线路上使用的此错误的代码。
|
static Http2Error |
valueOf(long value) |
static Http2Error |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static Http2Error[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
public static final Http2Error NO_ERROR
public static final Http2Error PROTOCOL_ERROR
public static final Http2Error INTERNAL_ERROR
public static final Http2Error FLOW_CONTROL_ERROR
public static final Http2Error SETTINGS_TIMEOUT
public static final Http2Error STREAM_CLOSED
public static final Http2Error FRAME_SIZE_ERROR
public static final Http2Error REFUSED_STREAM
public static final Http2Error CANCEL
public static final Http2Error COMPRESSION_ERROR
public static final Http2Error CONNECT_ERROR
public static final Http2Error ENHANCE_YOUR_CALM
public static final Http2Error INADEQUATE_SECURITY
public static final Http2Error HTTP_1_1_REQUIRED
public static Http2Error[] values()
for (Http2Error c : Http2Error.values())
System.out.println(c);
public static Http2Error valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
java.lang.NullPointerException
- 如果参数为null
public long code()
public static Http2Error valueOf(long value)
Copyright © 2008–2018 The Netty Project. All rights reserved.