Package org.eclipse.jetty.http2.hpack
Class HpackContext
- java.lang.Object
-
- org.eclipse.jetty.http2.hpack.HpackContext
-
public class HpackContext extends java.lang.ObjectHPACK - Header Compression for HTTP/2This 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 Classes Modifier and Type Class Description static classHpackContext.Entrystatic classHpackContext.StaticEntry
-
Field Summary
Fields Modifier and Type Field Description static org.eclipse.jetty.util.log.LoggerLOGstatic intSTATIC_SIZEstatic java.lang.String[][]STATIC_TABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HpackContext.Entryadd(org.eclipse.jetty.http.HttpField field)HpackContext.Entryget(int index)HpackContext.Entryget(java.lang.String name)HpackContext.Entryget(org.eclipse.jetty.http.HttpField field)HpackContext.Entryget(org.eclipse.jetty.http.HttpHeader header)intgetDynamicTableSize()intgetMaxDynamicTableSize()static HpackContext.EntrygetStatic(org.eclipse.jetty.http.HttpHeader header)intindex(HpackContext.Entry entry)voidresize(int newMaxDynamicTableSize)intsize()static intstaticIndex(org.eclipse.jetty.http.HttpHeader header)java.lang.StringtoString()
-
-
-
Method Detail
-
resize
public void resize(int newMaxDynamicTableSize)
-
get
public HpackContext.Entry get(org.eclipse.jetty.http.HttpField field)
-
get
public HpackContext.Entry get(java.lang.String name)
-
get
public HpackContext.Entry get(int index)
-
get
public HpackContext.Entry get(org.eclipse.jetty.http.HttpHeader header)
-
getStatic
public static HpackContext.Entry getStatic(org.eclipse.jetty.http.HttpHeader header)
-
add
public HpackContext.Entry add(org.eclipse.jetty.http.HttpField field)
-
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
public int index(HpackContext.Entry entry)
-
staticIndex
public static int staticIndex(org.eclipse.jetty.http.HttpHeader header)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-