Package org.apache.hc.core5.http2.frame
Enum FrameType
- All Implemented Interfaces:
Serializable
,Comparable<FrameType>
Standard HTTP/2 frame types.
- Since:
- 5.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static String
toString
(int value) static FrameType
valueOf
(int value) Returns the enum constant of this type with the specified name.static FrameType
Returns the enum constant of this type with the specified name.static FrameType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATA
-
HEADERS
-
PRIORITY
-
RST_STREAM
-
SETTINGS
-
PUSH_PROMISE
-
PING
-
GOAWAY
-
WINDOW_UPDATE
-
CONTINUATION
-
-
Field Details
-
value
int value -
LOOKUP_TABLE
-
-
Constructor Details
-
FrameType
private FrameType(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
-