Class IStream.FrameList

java.lang.Object
org.eclipse.jetty.http2.IStream.FrameList
Enclosing interface:
IStream

public static class IStream.FrameList extends Object

An ordered list of frames belonging to the same stream.

  • Constructor Details

    • FrameList

      public FrameList(HeadersFrame headers)

      Creates a frame list of just the given HEADERS frame.

      Parameters:
      headers - the HEADERS frame
    • FrameList

      public FrameList(HeadersFrame headers, DataFrame data, HeadersFrame trailers)

      Creates a frame list of the given frames.

      Parameters:
      headers - the HEADERS frame for the headers
      data - the DATA frame for the content, or null if there is no content
      trailers - the HEADERS frame for the trailers, or null if there are no trailers
  • Method Details

    • getStreamId

      public int getStreamId()
      Returns:
      the stream ID of the frames in this list
    • getFrames

      public List<StreamFrame> getFrames()
      Returns:
      a List of non-null frames