Package io.netty.handler.codec.http2
Class HpackStaticTable
- java.lang.Object
-
- io.netty.handler.codec.http2.HpackStaticTable
-
final class HpackStaticTable extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
HpackStaticTable.HeaderIndex
private static class
HpackStaticTable.HeaderNameIndex
-
Field Summary
Fields Modifier and Type Field Description private static HpackStaticTable.HeaderNameIndex[]
HEADER_NAMES
private static int
HEADER_NAMES_TABLE_SHIFT
private static int
HEADER_NAMES_TABLE_SIZE
private static HpackStaticTable.HeaderIndex[]
HEADERS_WITH_NON_EMPTY_VALUES
private static int
HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT
private static int
HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE
(package private) static int
length
The number of header fields in the static table.(package private) static int
NOT_FOUND
private static java.util.List<HpackHeaderField>
STATIC_TABLE
-
Constructor Summary
Constructors Modifier Constructor Description private
HpackStaticTable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static int
bucket(java.lang.CharSequence s, int shift, int mask)
(package private) static HpackHeaderField
getEntry(int index)
Return the header field at the given index value.private static HpackStaticTable.HeaderNameIndex
getEntry(java.lang.CharSequence name)
(package private) static int
getIndex(java.lang.CharSequence name)
Returns the lowest index value for the given header field name in the static table.(package private) static int
getIndexInsensitive(java.lang.CharSequence name, java.lang.CharSequence value)
Returns the index value for the given header field in the static table.private static int
headerBucket(java.lang.CharSequence value)
private static int
headerNameBucket(java.lang.CharSequence name)
private static HpackHeaderField
newEmptyHeaderField(AsciiString name)
private static HpackHeaderField
newEmptyHeaderField(java.lang.String name)
private static HpackHeaderField
newEmptyPseudoHeaderField(Http2Headers.PseudoHeaderName name)
private static HpackHeaderField
newHeaderField(AsciiString name, java.lang.String value)
private static HpackHeaderField
newPseudoHeaderField(Http2Headers.PseudoHeaderName name, AsciiString value)
private static HpackHeaderField
newPseudoHeaderField(Http2Headers.PseudoHeaderName name, java.lang.String value)
private static HpackHeaderField
newPseudoHeaderMethodField(HttpMethod method)
-
-
-
Field Detail
-
NOT_FOUND
static final int NOT_FOUND
- See Also:
- Constant Field Values
-
STATIC_TABLE
private static final java.util.List<HpackHeaderField> STATIC_TABLE
-
HEADER_NAMES_TABLE_SIZE
private static final int HEADER_NAMES_TABLE_SIZE
- See Also:
- Constant Field Values
-
HEADER_NAMES_TABLE_SHIFT
private static final int HEADER_NAMES_TABLE_SHIFT
-
HEADER_NAMES
private static final HpackStaticTable.HeaderNameIndex[] HEADER_NAMES
-
HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE
private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE
- See Also:
- Constant Field Values
-
HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT
private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT
-
HEADERS_WITH_NON_EMPTY_VALUES
private static final HpackStaticTable.HeaderIndex[] HEADERS_WITH_NON_EMPTY_VALUES
-
length
static final int length
The number of header fields in the static table.
-
-
Method Detail
-
newEmptyHeaderField
private static HpackHeaderField newEmptyHeaderField(AsciiString name)
-
newEmptyHeaderField
private static HpackHeaderField newEmptyHeaderField(java.lang.String name)
-
newHeaderField
private static HpackHeaderField newHeaderField(AsciiString name, java.lang.String value)
-
newPseudoHeaderMethodField
private static HpackHeaderField newPseudoHeaderMethodField(HttpMethod method)
-
newPseudoHeaderField
private static HpackHeaderField newPseudoHeaderField(Http2Headers.PseudoHeaderName name, AsciiString value)
-
newPseudoHeaderField
private static HpackHeaderField newPseudoHeaderField(Http2Headers.PseudoHeaderName name, java.lang.String value)
-
newEmptyPseudoHeaderField
private static HpackHeaderField newEmptyPseudoHeaderField(Http2Headers.PseudoHeaderName name)
-
getEntry
static HpackHeaderField getEntry(int index)
Return the header field at the given index value.
-
getIndex
static int getIndex(java.lang.CharSequence name)
Returns the lowest index value for the given header field name in the static table. Returns -1 if the header field name is not in the static table.
-
getIndexInsensitive
static int getIndexInsensitive(java.lang.CharSequence name, java.lang.CharSequence value)
Returns the index value for the given header field in the static table. Returns -1 if the header field is not in the static table.
-
getEntry
private static HpackStaticTable.HeaderNameIndex getEntry(java.lang.CharSequence name)
-
headerNameBucket
private static int headerNameBucket(java.lang.CharSequence name)
-
headerBucket
private static int headerBucket(java.lang.CharSequence value)
-
bucket
private static int bucket(java.lang.CharSequence s, int shift, int mask)
-
-