Top Inners Fields Constructors Methods
io.netty.handler.codec.http2

pack-priv final Class HpackStaticTable

extends Object
Class Inheritance
Imports
io.netty.handler.codec.http.HttpHeaderNames, .HttpMethod, .HttpResponseStatus, io.netty.handler.codec.http2.Http2Headers.PseudoHeaderName, io.netty.util.AsciiString, io.netty.util.internal.PlatformDependent, java.util.Arrays, .List

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static final HpackStaticTable.HeaderNameIndex[]
private static final int
private static final int
private static final HpackStaticTable.HeaderIndex[]
private static final int
private static final int
pack-priv static final int
length

The number of header fields in the static table.

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static int
bucket(CharSequence s, int shift, int mask)

pack-priv static HpackHeaderField
getEntry(int index)

Return the header field at the given index value.

private static HpackStaticTable.HeaderNameIndex
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
private static int
private static HpackHeaderField
private static HpackHeaderField
private static HpackHeaderField
private static HpackHeaderField
private static HpackHeaderField
private static HpackHeaderField
private static HpackHeaderField
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

HEADER_NAMESback to summary
private static final HpackStaticTable.HeaderNameIndex[] HEADER_NAMES
HEADER_NAMES_TABLE_SHIFTback to summary
private static final int HEADER_NAMES_TABLE_SHIFT
HEADER_NAMES_TABLE_SIZEback to summary
private static final int HEADER_NAMES_TABLE_SIZE
HEADERS_WITH_NON_EMPTY_VALUESback to summary
private static final HpackStaticTable.HeaderIndex[] HEADERS_WITH_NON_EMPTY_VALUES
HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFTback to summary
private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT
HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZEback to summary
private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE
lengthback to summary
pack-priv static final int length

The number of header fields in the static table.

NOT_FOUNDback to summary
pack-priv static final int NOT_FOUND
STATIC_TABLEback to summary
private static final List<HpackHeaderField> STATIC_TABLE

Constructor Detail

HpackStaticTableback to summary
private HpackStaticTable()

Method Detail

bucketback to summary
private static int bucket(CharSequence s, int shift, int mask)
getEntryback to summary
pack-priv static HpackHeaderField getEntry(int index)

Return the header field at the given index value.

getEntryback to summary
private static HpackStaticTable.HeaderNameIndex getEntry(CharSequence name)
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.

headerBucketback to summary
private static int headerBucket(CharSequence value)
headerNameBucketback to summary
private static int headerNameBucket(CharSequence name)
newEmptyHeaderFieldback to summary
private static HpackHeaderField newEmptyHeaderField(AsciiString name)
newEmptyHeaderFieldback to summary
private static HpackHeaderField newEmptyHeaderField(String name)
newEmptyPseudoHeaderFieldback to summary
private static HpackHeaderField newEmptyPseudoHeaderField(Http2Headers.PseudoHeaderName name)
newHeaderFieldback to summary
private static HpackHeaderField newHeaderField(AsciiString name, String value)
newPseudoHeaderFieldback to summary
private static HpackHeaderField newPseudoHeaderField(Http2Headers.PseudoHeaderName name, AsciiString value)
newPseudoHeaderFieldback to summary
private static HpackHeaderField newPseudoHeaderField(Http2Headers.PseudoHeaderName name, String value)
newPseudoHeaderMethodFieldback to summary
private static HpackHeaderField newPseudoHeaderMethodField(HttpMethod method)
io.netty.handler.codec.http2 back to summary

private final Class HpackStaticTable.HeaderIndex

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final CharSequence
pack-priv final CharSequence

Constructor Summary

AccessConstructor and Description
pack-priv
HeaderIndex(CharSequence name, CharSequence value, int index)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexback to summary
pack-priv final int index
nameback to summary
pack-priv final CharSequence name
valueback to summary
pack-priv final CharSequence value

Constructor Detail

HeaderIndexback to summary
pack-priv HeaderIndex(CharSequence name, CharSequence value, int index)
io.netty.handler.codec.http2 back to summary

private final Class HpackStaticTable.HeaderNameIndex

extends Object
Class Inheritance
  • java.lang.Object
  • io.netty.handler.codec.http2.HpackStaticTable.HeaderNameIndex

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
pack-priv final int
pack-priv final CharSequence

Constructor Summary

AccessConstructor and Description
pack-priv
HeaderNameIndex(CharSequence name, int index, boolean emptyValue)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

emptyValueback to summary
pack-priv final boolean emptyValue
indexback to summary
pack-priv final int index
nameback to summary
pack-priv final CharSequence name

Constructor Detail

HeaderNameIndexback to summary
pack-priv HeaderNameIndex(CharSequence name, int index, boolean emptyValue)