Enum Class HTTP3Stream.FrameState

java.lang.Object
java.lang.Enum<HTTP3Stream.FrameState>
org.eclipse.jetty.http3.HTTP3Stream.FrameState
All Implemented Interfaces:
Serializable, Comparable<HTTP3Stream.FrameState>, Constable
Enclosing class:
HTTP3Stream

protected static enum HTTP3Stream.FrameState extends Enum<HTTP3Stream.FrameState>

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.

  • Enum Constant Details

  • Method Details

    • values

      public static HTTP3Stream.FrameState[] 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

      public static HTTP3Stream.FrameState valueOf(String name)
      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 name
      NullPointerException - if the argument is null