public class HeadersInfo extends Info
A container for HEADERS frame metadata and headers.
| Modifier and Type | Field and Description |
|---|---|
static byte |
FLAG_CLOSE
Flag that indicates that this
HeadersInfo is the last frame in the stream. |
static byte |
FLAG_RESET_COMPRESSION
Flag that indicates that the compression of the stream must be reset.
|
| Constructor and Description |
|---|
HeadersInfo(Fields headers,
boolean close)
Creates a new
HeadersInfo instance with the given headers, the given close flag and no reset
compression flag |
HeadersInfo(Fields headers,
boolean close,
boolean resetCompression)
Creates a new
HeadersInfo instance with the given headers, the given close flag and the given reset
compression flag |
HeadersInfo(long timeout,
TimeUnit unit,
boolean close,
boolean resetCompression,
Fields headers)
Creates a new
HeadersInfo instance with the given headers, the given close flag and the given reset
compression flag |
| Modifier and Type | Method and Description |
|---|---|
byte |
getFlags() |
Fields |
getHeaders() |
boolean |
isClose() |
boolean |
isResetCompression() |
String |
toString() |
getTimeout, getUnitpublic static final byte FLAG_CLOSE
Flag that indicates that this HeadersInfo is the last frame in the stream.
isClose(),
getFlags(),
Constant Field Valuespublic static final byte FLAG_RESET_COMPRESSION
Flag that indicates that the compression of the stream must be reset.
isResetCompression(),
getFlags(),
Constant Field Valuespublic HeadersInfo(Fields headers, boolean close)
Creates a new HeadersInfo instance with the given headers, the given close flag and no reset
compression flag
headers - the Fieldsclose - the value of the close flagpublic HeadersInfo(Fields headers, boolean close, boolean resetCompression)
Creates a new HeadersInfo instance with the given headers, the given close flag and the given reset
compression flag
headers - the Fieldsclose - the value of the close flagresetCompression - the value of the reset compression flagpublic HeadersInfo(long timeout,
TimeUnit unit,
boolean close,
boolean resetCompression,
Fields headers)
Creates a new HeadersInfo instance with the given headers, the given close flag and the given reset
compression flag
timeout - the operation's timeoutunit - the timeout's unitheaders - the Fieldsclose - the value of the close flagresetCompression - the value of the reset compression flagpublic boolean isClose()
public boolean isResetCompression()
public byte getFlags()
FLAG_CLOSE,
FLAG_RESET_COMPRESSIONCopyright © 1995-2015 Webtide. All Rights Reserved.