public class HeadersInfo extends Object
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(Headers headers,
boolean close)
Creates a new
HeadersInfo instance with the given headers,
the given close flag and no reset compression flag |
HeadersInfo(Headers headers,
boolean close,
boolean resetCompression)
Creates a new
HeadersInfo instance with the given headers,
the given close flag and the given reset compression flag |
public 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(Headers headers, boolean close)
Creates a new HeadersInfo
instance with the given headers,
the given close flag and no reset compression flag
headers
- the Headers
close
- the value of the close flagpublic HeadersInfo(Headers 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 Headers
close
- 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_COMPRESSION
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.