Package org.eclipse.jetty.http2.hpack
Class HpackDecoder
- java.lang.Object
-
- org.eclipse.jetty.http2.hpack.HpackDecoder
-
public class HpackDecoder extends 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 org.eclipse.jetty.http.HttpField.LongValueHttpFieldCONTENT_LENGTH_0static org.eclipse.jetty.util.log.LoggerLOG
-
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 org.eclipse.jetty.http.MetaDatadecode(ByteBuffer buffer)HpackContextgetHpackContext()voidsetLocalMaxDynamicTableSize(int localMaxdynamciTableSize)static StringtoASCIIString(ByteBuffer buffer, int length)StringtoString()
-
-
-
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 org.eclipse.jetty.http.MetaData decode(ByteBuffer buffer) throws HpackException.SessionException, HpackException.StreamException
-
toASCIIString
public static String toASCIIString(ByteBuffer buffer, int length)
-
-