Package org.eclipse.jetty.http3
Enum Class HTTP3Stream.FrameState
- All Implemented Interfaces:
Serializable
,Comparable<HTTP3Stream.FrameState>
,Constable
- Enclosing class:
- HTTP3Stream
Defines the state of the stream for received frames,
allowing to verify that a frame sequence is valid for the HTTP protocol.
For example, for a stream in the INITIAL
state,
receiving a DataFrame
would move the stream to the
DATA
state which would be invalid, since for the
HTTP protocol a HeadersFrame
is expected before
any DataFrame
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe stream has received HTTP content.The stream has encountered a failure.The stream has received an HTTP final response.The stream has received an HTTP informational response.The initial state of the stream, before it receives any frame.The stream has received an HTTP trailer. -
Method Summary
Modifier and TypeMethodDescriptionstatic HTTP3Stream.FrameState
Returns the enum constant of this class with the specified name.static HTTP3Stream.FrameState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
The initial state of the stream, before it receives any frame. -
INFORMATIONAL
The stream has received an HTTP informational response. -
HEADER
The stream has received an HTTP final response. -
DATA
The stream has received HTTP content. -
TRAILER
The stream has received an HTTP trailer. -
FAILED
The stream has encountered a failure.
-
-
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
-