Http2HeadersFrame implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final Http2Headers | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttp2HeadersFrame(Http2Headers
the non- headers)null headers to sendEquivalent to |
| public | DefaultHttp2HeadersFrame(Http2Headers
the non- headers, boolean endStream)null headers to sendEquivalent to |
| public | DefaultHttp2HeadersFrame(Http2Headers
the non- headers, boolean null headers to sendwhether these headers should terminate the stream endStream, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding)Construct a new headers message. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides io. true if o has equal stream to this object.
|
| public int | hashCode()
Overrides io. |
| public Http2Headers | |
| public boolean | isEndStream()
Implements io. true if the END_STREAM flag is set.
|
| public String | name()
Implements io. |
| public int | |
| public DefaultHttp2HeadersFrame | stream(Http2FrameStream stream)
Overrides io. Implements io. Http2FrameStream object for this frame.
|
| public String |
| endStream | back to summary |
|---|---|
| private final boolean endStream | |
| headers | back to summary |
|---|---|
| private final Http2Headers headers | |
| padding | back to summary |
|---|---|
| private final int padding | |
| DefaultHttp2HeadersFrame | back to summary |
|---|---|
| public DefaultHttp2HeadersFrame(Http2Headers headers) Equivalent to
| |
| DefaultHttp2HeadersFrame | back to summary |
|---|---|
| public DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream) Equivalent to
| |
| DefaultHttp2HeadersFrame | back to summary |
|---|---|
| public DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream, int padding) Construct a new headers message.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides io. Doc from io. Returns
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides io. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| headers | back to summary |
|---|---|
| public Http2Headers headers() Implements io. Doc from io. A complete header list. CONTINUATION frames are automatically handled.
| |
| isEndStream | back to summary |
|---|---|
| public boolean isEndStream() Implements io. Doc from io. Returns
| |
| name | back to summary |
|---|---|
| public String name() Implements io. Doc from io. Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.
| |
| padding | back to summary |
|---|---|
| public int padding() Implements io. Doc from io. Frame padding to use. Must be non-negative and less than 256.
| |
| stream | back to summary |
|---|---|
| public DefaultHttp2HeadersFrame stream(Http2FrameStream stream) Overrides io. Implements io. Doc from io. Set the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |