- All Implemented Interfaces:
Serializable
,Comparable<Http2FrameType>
,Constable
HTTP/2 frame types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionContinuation frame.Data frame.Go away frame.Headers frame.Ping frame.Priority frame.Push promise frame (not supported by this server).RST stream frame.Setting frame.Unknown frame.Window update frame. -
Method Summary
Modifier and TypeMethodDescriptionstatic Http2FrameType
byId
(int id) Get a frame type by frame id.void
checkLength
(int length) Check if the length of the frame is valid for this frame type.int
type()
Type id.static Http2FrameType
Returns the enum constant of this class with the specified name.static Http2FrameType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DATA
Data frame. -
HEADERS
Headers frame. -
PRIORITY
Priority frame. -
RST_STREAM
RST stream frame. -
SETTINGS
Setting frame. -
PUSH_PROMISE
Push promise frame (not supported by this server). -
PING
Ping frame. -
GO_AWAY
Go away frame. -
WINDOW_UPDATE
Window update frame. -
CONTINUATION
Continuation frame. -
UNKNOWN
Unknown frame.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
byId
Get a frame type by frame id.- Parameters:
id
- frame id- Returns:
- frame type
-
type
public int type()Type id.- Returns:
- frame type id
-
checkLength
public void checkLength(int length) Check if the length of the frame is valid for this frame type.- Parameters:
length
- length of frame
-