Package org.eclipse.jetty.http2
Class IStream.FrameList
- java.lang.Object
-
- org.eclipse.jetty.http2.IStream.FrameList
-
- Enclosing interface:
- IStream
public static class IStream.FrameList extends java.lang.Object
An ordered list of frames belonging to the same stream.
-
-
Constructor Summary
Constructors Constructor Description FrameList(HeadersFrame headers)
Creates a frame list of just the given HEADERS frame.FrameList(HeadersFrame headers, DataFrame data, HeadersFrame trailers)
Creates a frame list of the given frames.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<StreamFrame>
getFrames()
int
getStreamId()
-
-
-
Constructor Detail
-
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 headersdata
- the DATA frame for the content, or null if there is no contenttrailers
- the HEADERS frame for the trailers, or null if there are no trailers
-
-
Method Detail
-
getStreamId
public int getStreamId()
- Returns:
- the stream ID of the frames in this list
-
getFrames
public java.util.List<StreamFrame> getFrames()
- Returns:
- a List of non-null frames
-
-