Package io.netty.handler.codec.http2
Enum Http2Error
- java.lang.Object
-
- java.lang.Enum<Http2Error>
-
- io.netty.handler.codec.http2.Http2Error
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Http2Error>
public enum Http2Error extends java.lang.Enum<Http2Error>
All error codes identified by the HTTP/2 spec.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELCOMPRESSION_ERRORCONNECT_ERRORENHANCE_YOUR_CALMFLOW_CONTROL_ERRORFRAME_SIZE_ERRORHTTP_1_1_REQUIREDINADEQUATE_SECURITYINTERNAL_ERRORNO_ERRORPROTOCOL_ERRORREFUSED_STREAMSETTINGS_TIMEOUTSTREAM_CLOSED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longcode()Gets the code for this error used on the wire.static Http2ErrorvalueOf(long value)Returns the enum constant of this type with the specified name.static Http2ErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Http2Error[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_ERROR
public static final Http2Error NO_ERROR
-
PROTOCOL_ERROR
public static final Http2Error PROTOCOL_ERROR
-
INTERNAL_ERROR
public static final Http2Error INTERNAL_ERROR
-
FLOW_CONTROL_ERROR
public static final Http2Error FLOW_CONTROL_ERROR
-
SETTINGS_TIMEOUT
public static final Http2Error SETTINGS_TIMEOUT
-
STREAM_CLOSED
public static final Http2Error STREAM_CLOSED
-
FRAME_SIZE_ERROR
public static final Http2Error FRAME_SIZE_ERROR
-
REFUSED_STREAM
public static final Http2Error REFUSED_STREAM
-
CANCEL
public static final Http2Error CANCEL
-
COMPRESSION_ERROR
public static final Http2Error COMPRESSION_ERROR
-
CONNECT_ERROR
public static final Http2Error CONNECT_ERROR
-
ENHANCE_YOUR_CALM
public static final Http2Error ENHANCE_YOUR_CALM
-
INADEQUATE_SECURITY
public static final Http2Error INADEQUATE_SECURITY
-
HTTP_1_1_REQUIRED
public static final Http2Error HTTP_1_1_REQUIRED
-
-
Method Detail
-
values
public static Http2Error[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Http2Error c : Http2Error.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Http2Error valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
code
public long code()
Gets the code for this error used on the wire.
-
valueOf
public static Http2Error valueOf(long value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-