Package org.eclipse.jetty.http2.hpack
Class HpackDecoder
- java.lang.Object
-
- org.eclipse.jetty.http2.hpack.HpackDecoder
-
public class HpackDecoder extends java.lang.Object
Hpack DecoderThis is not thread safe and may only be called by 1 thread at a time.
-
-
Field Summary
Fields Modifier and Type Field Description static HttpField.LongValueHttpField
CONTENT_LENGTH_0
static Logger
LOG
-
Constructor Summary
Constructors Constructor Description HpackDecoder(int localMaxDynamicTableSize, int maxHeaderSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaData
decode(java.nio.ByteBuffer buffer)
HpackContext
getHpackContext()
void
setLocalMaxDynamicTableSize(int localMaxdynamciTableSize)
static java.lang.String
toASCIIString(java.nio.ByteBuffer buffer, int length)
java.lang.String
toString()
-
-
-
Field Detail
-
LOG
public static final Logger LOG
-
CONTENT_LENGTH_0
public static final HttpField.LongValueHttpField CONTENT_LENGTH_0
-
-
Constructor Detail
-
HpackDecoder
public HpackDecoder(int localMaxDynamicTableSize, int maxHeaderSize)
- Parameters:
localMaxDynamicTableSize
- The maximum allowed size of the local dynamic header field table.maxHeaderSize
- The maximum allowed size of a headers block, expressed as total of all name and value characters, plus 32 per field
-
-
Method Detail
-
getHpackContext
public HpackContext getHpackContext()
-
setLocalMaxDynamicTableSize
public void setLocalMaxDynamicTableSize(int localMaxdynamciTableSize)
-
decode
public MetaData decode(java.nio.ByteBuffer buffer) throws HpackException.SessionException, HpackException.StreamException
-
toASCIIString
public static java.lang.String toASCIIString(java.nio.ByteBuffer buffer, int length)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-