Package io.netty.handler.codec.http2
Class HpackStaticTable
- java.lang.Object
-
- io.netty.handler.codec.http2.HpackStaticTable
-
final class HpackStaticTable extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
length
The number of header fields in the static table.private static CharSequenceMap<java.lang.Integer>
STATIC_INDEX_BY_NAME
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 CharSequenceMap<java.lang.Integer>
createMap()
(package private) static HpackHeaderField
getEntry(int index)
Return the header field at the given index value.(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 HpackHeaderField
newEmptyHeaderField(java.lang.String name)
private static HpackHeaderField
newHeaderField(java.lang.String name, java.lang.String value)
-
-
-
Field Detail
-
STATIC_TABLE
private static final java.util.List<HpackHeaderField> STATIC_TABLE
-
STATIC_INDEX_BY_NAME
private static final CharSequenceMap<java.lang.Integer> STATIC_INDEX_BY_NAME
-
length
static final int length
The number of header fields in the static table.
-
-
Method Detail
-
newEmptyHeaderField
private static HpackHeaderField newEmptyHeaderField(java.lang.String name)
-
newHeaderField
private static HpackHeaderField newHeaderField(java.lang.String name, java.lang.String value)
-
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.
-
createMap
private static CharSequenceMap<java.lang.Integer> createMap()
-
-