Top Fields Constructors Methods
io.netty5.handler.codec.http2

pack-priv final Class HpackStaticTable

extends Object
Class Inheritance
Imports
io.netty5.handler.codec.UnsupportedValueConverter, io.netty5.util.AsciiString, java.util.Arrays, .List

Field Summary

Modifier and TypeField and Description
pack-priv static final int
length

The number of header fields in the static table.

private static final int
pack-priv static final int
private static final CharSequenceMap<Integer>
private static final List<HpackHeaderField>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static CharSequenceMap<Integer>
pack-priv static HpackHeaderField
getEntry(int index)

Return the header field at the given index value.

pack-priv static int
getIndex(CharSequence name)

Returns the lowest index value for the given header field name in the static table.

pack-priv static int
getIndexInsensitive(CharSequence name, CharSequence value)

Returns the index value for the given header field in the static table.

private static int
maxSameNameFieldIndex()

Returns the last position in the array that contains multiple fields with the same name.

private static HpackHeaderField
private static HpackHeaderField
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lengthback to summary
pack-priv static final int length

The number of header fields in the static table.

MAX_SAME_NAME_FIELD_INDEXback to summary
private static final int MAX_SAME_NAME_FIELD_INDEX
NOT_FOUNDback to summary
pack-priv static final int NOT_FOUND
STATIC_INDEX_BY_NAMEback to summary
private static final CharSequenceMap<Integer> STATIC_INDEX_BY_NAME
STATIC_TABLEback to summary
private static final List<HpackHeaderField> STATIC_TABLE

Constructor Detail

HpackStaticTableback to summary
private HpackStaticTable()

Method Detail

createMapback to summary
private static CharSequenceMap<Integer> createMap()
getEntryback to summary
pack-priv static HpackHeaderField getEntry(int index)

Return the header field at the given index value.

getIndexback to summary
pack-priv static int getIndex(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.

getIndexInsensitiveback to summary
pack-priv static int getIndexInsensitive(CharSequence name, 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.

maxSameNameFieldIndexback to summary
private static int maxSameNameFieldIndex()

Returns the last position in the array that contains multiple fields with the same name. Starting from this position, all names are unique. Similar to getIndexInsensitive(CharSequence, CharSequence) method assumes all entries for a given header field are sequential

newEmptyHeaderFieldback to summary
private static HpackHeaderField newEmptyHeaderField(String name)
newHeaderFieldback to summary
private static HpackHeaderField newHeaderField(String name, String value)