public class HpackContext extends Object
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
Modifier and Type | Class and Description |
---|---|
static class |
HpackContext.Entry |
static class |
HpackContext.StaticEntry |
Modifier and Type | Field and Description |
---|---|
static Logger |
LOG |
static String[][] |
STATIC_TABLE |
Modifier and Type | Method and Description |
---|---|
HpackContext.Entry |
add(HttpField field) |
HpackContext.Entry |
get(HttpField field) |
HpackContext.Entry |
get(HttpHeader header) |
HpackContext.Entry |
get(int index) |
HpackContext.Entry |
get(String name) |
int |
getDynamicTableSize() |
int |
getMaxDynamicTableSize() |
static HpackContext.Entry |
getStatic(HttpHeader header) |
int |
index(HpackContext.Entry entry) |
void |
resize(int newMaxDynamicTableSize) |
int |
size() |
static int |
staticIndex(HttpHeader header) |
String |
toString() |
public static final Logger LOG
public static final String[][] STATIC_TABLE
public void resize(int newMaxDynamicTableSize)
public HpackContext.Entry get(HttpField field)
public HpackContext.Entry get(String name)
public HpackContext.Entry get(int index)
public HpackContext.Entry get(HttpHeader header)
public static HpackContext.Entry getStatic(HttpHeader header)
public HpackContext.Entry add(HttpField field)
public int size()
public int getDynamicTableSize()
public int getMaxDynamicTableSize()
public int index(HpackContext.Entry entry)
public static int staticIndex(HttpHeader header)
Copyright © 1995-2016 Webtide. All Rights Reserved.