Package org.eclipse.jetty.http2.hpack
Class HpackContext
java.lang.Object
org.eclipse.jetty.http2.hpack.HpackContext
HPACK - Header Compression for HTTP/2
This class maintains the compression context for a single HTTP/2 connection. Specifically it holds the static and dynamic Header Field Tables and the associated sizes and limits.
It is compliant with draft 11 of the specification
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<org.eclipse.jetty.http.HttpField, HpackContext.Entry> private static final org.eclipse.jetty.util.Trie<HpackContext.StaticEntry> private static final HpackContext.StaticEntry[]private static final HpackContext.StaticEntry[]private final HpackContext.DynamicTableprivate final Map<org.eclipse.jetty.http.HttpField, HpackContext.Entry> private intprivate final Map<String, HpackContext.Entry> private intstatic final intprivate static final Stringstatic final org.eclipse.jetty.util.log.Loggerstatic final intstatic final String[][] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(org.eclipse.jetty.http.HttpField field) get(int index) get(org.eclipse.jetty.http.HttpField field) get(org.eclipse.jetty.http.HttpHeader header) intintstatic HpackContext.EntrygetStatic(org.eclipse.jetty.http.HttpHeader header) intindex(HpackContext.Entry entry) voidresize(int newMaxDynamicTableSize) intsize()static intstaticIndex(org.eclipse.jetty.http.HttpHeader header) toString()
-
Field Details
-
LOG
public static final org.eclipse.jetty.util.log.Logger LOG -
EMPTY
- See Also:
-
STATIC_TABLE
-
__staticFieldMap
-
__staticNameMap
-
__staticTableByHeader
-
__staticTable
-
STATIC_SIZE
public static final int STATIC_SIZE -
DEFAULT_MAX_TABLE_CAPACITY
public static final int DEFAULT_MAX_TABLE_CAPACITY- See Also:
-
_dynamicTable
-
_fieldMap
-
_nameMap
-
_maxTableSize
private int _maxTableSize -
_tableSize
private int _tableSize
-
-
Constructor Details
-
HpackContext
HpackContext(int maxTableSize)
-
-
Method Details
-
resize
public void resize(int newMaxDynamicTableSize) -
get
-
get
-
get
-
get
-
getStatic
-
add
-
size
public int size()- Returns:
- Current dynamic table size in entries
-
getDynamicTableSize
public int getDynamicTableSize()- Returns:
- Current Dynamic table size in Octets
-
getMaxDynamicTableSize
public int getMaxDynamicTableSize()- Returns:
- Max Dynamic table size in Octets
-
index
-
staticIndex
public static int staticIndex(org.eclipse.jetty.http.HttpHeader header) -
toString
-