Class HpackStaticTable
java.lang.Object
io.netty.handler.codec.http2.HpackStaticTable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final HpackStaticTable.HeaderNameIndex[]private static final intprivate static final intprivate static final HpackStaticTable.HeaderIndex[]private static final intprivate static final int(package private) static final intThe number of header fields in the static table.(package private) static final intprivate static final List<HpackHeaderField> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intbucket(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(CharSequence name) (package private) static intgetIndex(CharSequence name) Returns the lowest index value for the given header field name in the static table.(package private) static intgetIndexInsensitive(CharSequence name, CharSequence value) Returns the index value for the given header field in the static table.private static intheaderBucket(CharSequence value) private static intheaderNameBucket(CharSequence name) private static HpackHeaderFieldprivate static HpackHeaderFieldnewEmptyHeaderField(String name) private static HpackHeaderFieldprivate static HpackHeaderFieldnewHeaderField(AsciiString name, String value) private static HpackHeaderFieldnewPseudoHeaderField(Http2Headers.PseudoHeaderName name, AsciiString value) private static HpackHeaderFieldnewPseudoHeaderField(Http2Headers.PseudoHeaderName name, String value) private static HpackHeaderFieldnewPseudoHeaderMethodField(HttpMethod method)
-
Field Details
-
NOT_FOUND
static final int NOT_FOUND- See Also:
-
STATIC_TABLE
-
HEADER_NAMES_TABLE_SIZE
private static final int HEADER_NAMES_TABLE_SIZE- See Also:
-
HEADER_NAMES_TABLE_SHIFT
private static final int HEADER_NAMES_TABLE_SHIFT -
HEADER_NAMES
-
HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE
private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE- See Also:
-
HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT
private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT -
HEADERS_WITH_NON_EMPTY_VALUES
-
length
static final int lengthThe number of header fields in the static table.
-
-
Constructor Details
-
HpackStaticTable
private HpackStaticTable()
-
-
Method Details
-
newEmptyHeaderField
-
newEmptyHeaderField
-
newHeaderField
-
newPseudoHeaderMethodField
-
newPseudoHeaderField
private static HpackHeaderField newPseudoHeaderField(Http2Headers.PseudoHeaderName name, AsciiString value) -
newPseudoHeaderField
private static HpackHeaderField newPseudoHeaderField(Http2Headers.PseudoHeaderName name, String value) -
newEmptyPseudoHeaderField
-
getEntry
Return the header field at the given index value. -
getIndex
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
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
-
headerNameBucket
-
headerBucket
-
bucket
-