Package org.eclipse.jetty.http2.frames
Class HeadersFrame
- java.lang.Object
-
- org.eclipse.jetty.http2.frames.Frame
-
- org.eclipse.jetty.http2.frames.StreamFrame
-
- org.eclipse.jetty.http2.frames.HeadersFrame
-
public class HeadersFrame extends StreamFrame
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.http2.frames.Frame
DEFAULT_MAX_LENGTH, EMPTY_ARRAY, HEADER_LENGTH, MAX_MAX_LENGTH
-
-
Constructor Summary
Constructors Constructor Description HeadersFrame(int streamId, MetaData metaData, PriorityFrame priority, boolean endStream)Creates a newHEADERSframe with the specified streamid.HeadersFrame(MetaData metaData, PriorityFrame priority, boolean endStream)Creates a newHEADERSframe with an unspecified streamid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaDatagetMetaData()PriorityFramegetPriority()booleanisEndStream()java.lang.StringtoString()HeadersFramewithStreamId(int streamId)-
Methods inherited from class org.eclipse.jetty.http2.frames.StreamFrame
getStreamId
-
-
-
-
Constructor Detail
-
HeadersFrame
public HeadersFrame(MetaData metaData, PriorityFrame priority, boolean endStream)
Creates a new
HEADERSframe with an unspecified streamid.The stream
idwill be generated by the implementation while sending this frame to the other peer.- Parameters:
metaData- the metadata containing HTTP request informationpriority- the PRIORITY frame associated with this HEADERS frameendStream- whether this frame ends the stream
-
HeadersFrame
public HeadersFrame(int streamId, MetaData metaData, PriorityFrame priority, boolean endStream)Creates a new
HEADERSframe with the specified streamid.HEADERSframes with a specific streamidare typically used in responses to requestHEADERSframes.- Parameters:
streamId- the stream idmetaData- the metadata containing HTTP request/response informationpriority- the PRIORITY frame associated with this HEADERS frameendStream- whether this frame ends the stream
-
-
Method Detail
-
getMetaData
public MetaData getMetaData()
-
getPriority
public PriorityFrame getPriority()
-
isEndStream
public boolean isEndStream()
-
withStreamId
public HeadersFrame withStreamId(int streamId)
- Specified by:
withStreamIdin classStreamFrame
-
-