public final class DefaultHttp2HeadersFrame extends AbstractHttp2StreamFrame implements Http2HeadersFrame
Http2HeadersFrame implementation.| Constructor and Description |
|---|
DefaultHttp2HeadersFrame(Http2Headers headers)
Equivalent to
new DefaultHttp2HeadersFrame(headers, false). |
DefaultHttp2HeadersFrame(Http2Headers headers,
boolean endStream)
Equivalent to
new DefaultHttp2HeadersFrame(headers, endStream, 0). |
DefaultHttp2HeadersFrame(Http2Headers headers,
boolean endStream,
int padding)
Construct a new headers message.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Returns
true if o has equal stream to this object. |
int |
hashCode() |
Http2Headers |
headers()
A complete header list.
|
boolean |
isEndStream()
true if this frame is the last one in this direction of the stream. |
int |
padding()
Frame padding to use.
|
DefaultHttp2HeadersFrame |
setStream(Object stream)
Set the stream identifier for this message.
|
String |
toString() |
streamclone, finalize, getClass, notify, notifyAll, wait, wait, waitstreampublic DefaultHttp2HeadersFrame(Http2Headers headers)
new DefaultHttp2HeadersFrame(headers, false).headers - the non-null headers to sendpublic DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream)
new DefaultHttp2HeadersFrame(headers, endStream, 0).headers - the non-null headers to sendpublic DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream, int padding)
headers - the non-null headers to sendendStream - whether these headers should terminate the streampadding - additional bytes that should be added to obscure the true content sizepublic DefaultHttp2HeadersFrame setStream(Object stream)
Http2StreamFramesetStream in interface Http2HeadersFramesetStream in interface Http2StreamFramesetStream in class AbstractHttp2StreamFramethispublic Http2Headers headers()
Http2HeadersFrameheaders in interface Http2HeadersFramepublic boolean isEndStream()
Http2HeadersFrametrue if this frame is the last one in this direction of the stream.isEndStream in interface Http2HeadersFramepublic int padding()
Http2HeadersFramepadding in interface Http2HeadersFramepublic boolean equals(Object o)
AbstractHttp2StreamFrametrue if o has equal stream to this object.equals in class AbstractHttp2StreamFramepublic int hashCode()
hashCode in class AbstractHttp2StreamFrameCopyright © 2008–2016 The Netty Project. All rights reserved.