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 classHpackStaticTable.HeaderIndexprivate static classHpackStaticTable.HeaderNameIndex
-
Field Summary
Fields Modifier and Type Field Description private static HpackStaticTable.HeaderNameIndex[]HEADER_NAMESprivate static intHEADER_NAMES_TABLE_SHIFTprivate static intHEADER_NAMES_TABLE_SIZEprivate static HpackStaticTable.HeaderIndex[]HEADERS_WITH_NON_EMPTY_VALUESprivate static intHEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFTprivate static intHEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE(package private) static intlengthThe number of header fields in the static table.(package private) static intNOT_FOUNDprivate static java.util.List<HpackHeaderField>STATIC_TABLE
-
Constructor Summary
Constructors Modifier Constructor Description privateHpackStaticTable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static intbucket(java.lang.CharSequence s, int shift, int mask)(package private) static HpackHeaderFieldgetEntry(int index)Return the header field at the given index value.private static HpackStaticTable.HeaderNameIndexgetEntry(java.lang.CharSequence name)(package private) static intgetIndex(java.lang.CharSequence name)Returns the lowest index value for the given header field name in the static table.(package private) static intgetIndexInsensitive(java.lang.CharSequence name, java.lang.CharSequence value)Returns the index value for the given header field in the static table.private static intheaderBucket(java.lang.CharSequence value)private static intheaderNameBucket(java.lang.CharSequence name)private static HpackHeaderFieldnewEmptyHeaderField(AsciiString name)private static HpackHeaderFieldnewEmptyHeaderField(java.lang.String name)private static HpackHeaderFieldnewEmptyPseudoHeaderField(Http2Headers.PseudoHeaderName name)private static HpackHeaderFieldnewHeaderField(AsciiString name, java.lang.String value)private static HpackHeaderFieldnewPseudoHeaderField(Http2Headers.PseudoHeaderName name, AsciiString value)private static HpackHeaderFieldnewPseudoHeaderField(Http2Headers.PseudoHeaderName name, java.lang.String value)private static HpackHeaderFieldnewPseudoHeaderMethodField(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)
-
-