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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final org.eclipse.jetty.http.MetaData
private final PriorityFrame
Fields inherited from class org.eclipse.jetty.http2.frames.Frame
DEFAULT_MAX_LENGTH, EMPTY_ARRAY, HEADER_LENGTH, MAX_MAX_LENGTH
-
Constructor Summary
ConstructorsConstructorDescriptionHeadersFrame
(int streamId, org.eclipse.jetty.http.MetaData metaData, PriorityFrame priority, boolean endStream) Creates a newHEADERS
frame with the specified streamid
.HeadersFrame
(org.eclipse.jetty.http.MetaData metaData, PriorityFrame priority, boolean endStream) Creates a newHEADERS
frame with an unspecified streamid
. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.http.MetaData
boolean
toString()
withStreamId
(int streamId) Methods inherited from class org.eclipse.jetty.http2.frames.StreamFrame
getStreamId
-
Field Details
-
metaData
private final org.eclipse.jetty.http.MetaData metaData -
priority
-
endStream
private final boolean endStream
-
-
Constructor Details
-
HeadersFrame
public HeadersFrame(org.eclipse.jetty.http.MetaData metaData, PriorityFrame priority, boolean endStream) Creates a new
HEADERS
frame with an unspecified streamid
.The stream
id
will 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, org.eclipse.jetty.http.MetaData metaData, PriorityFrame priority, boolean endStream) Creates a new
HEADERS
frame with the specified streamid
.HEADERS
frames with a specific streamid
are typically used in responses to requestHEADERS
frames.- 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 Details
-
getMetaData
public org.eclipse.jetty.http.MetaData getMetaData() -
getPriority
-
isEndStream
public boolean isEndStream() -
withStreamId
- Specified by:
withStreamId
in classStreamFrame
-
toString
-