Class HpackStaticTable
java.lang.Object
io.netty.handler.codec.http2.HpackStaticTable
final class HpackStaticTable
extends java.lang.Object
-
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 java.util.List<HpackHeaderField> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate 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 HpackHeaderFieldprivate static HpackHeaderFieldnewEmptyHeaderField(java.lang.String name) private static HpackHeaderFieldprivate 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, java.lang.String value) -
newEmptyPseudoHeaderField
-
getEntry
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
-
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)
-