Enum Class Http2FrameType

java.lang.Object
java.lang.Enum<Http2FrameType>
io.helidon.http.http2.Http2FrameType
All Implemented Interfaces:
Serializable, Comparable<Http2FrameType>, Constable

public enum Http2FrameType extends Enum<Http2FrameType>
HTTP/2 frame types.
  • Enum Constant Details

    • DATA

      public static final Http2FrameType DATA
      Data frame.
    • HEADERS

      public static final Http2FrameType HEADERS
      Headers frame.
    • PRIORITY

      public static final Http2FrameType PRIORITY
      Priority frame.
    • RST_STREAM

      public static final Http2FrameType RST_STREAM
      RST stream frame.
    • SETTINGS

      public static final Http2FrameType SETTINGS
      Setting frame.
    • PUSH_PROMISE

      public static final Http2FrameType PUSH_PROMISE
      Push promise frame (not supported by this server).
    • PING

      public static final Http2FrameType PING
      Ping frame.
    • GO_AWAY

      public static final Http2FrameType GO_AWAY
      Go away frame.
    • WINDOW_UPDATE

      public static final Http2FrameType WINDOW_UPDATE
      Window update frame.
    • CONTINUATION

      public static final Http2FrameType CONTINUATION
      Continuation frame.
    • UNKNOWN

      public static final Http2FrameType UNKNOWN
      Unknown frame.
  • Method Details

    • values

      public static Http2FrameType[] 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 Http2FrameType 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
    • byId

      public static Http2FrameType byId(int id)
      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