Package org.eclipse.jetty.http2.hpack
Class HpackDecoder
- java.lang.Object
- 
- org.eclipse.jetty.http2.hpack.HpackDecoder
 
- 
 public class HpackDecoder extends java.lang.ObjectHpack DecoderThis is not thread safe and may only be called by 1 thread at a time. 
- 
- 
Field SummaryFields Modifier and Type Field Description static HttpField.LongValueHttpFieldCONTENT_LENGTH_0static LoggerLOG
 - 
Constructor SummaryConstructors Constructor Description HpackDecoder(int maxHeaderSize)HpackDecoder(int localMaxDynamicTableSize, int maxHeaderSize)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MetaDatadecode(java.nio.ByteBuffer buffer)HpackContextgetHpackContext()intgetMaxHeaderListSize()intgetMaxTableCapacity()voidsetLocalMaxDynamicTableSize(int maxTableSizeLimit)Deprecated.usesetMaxTableCapacity(int)insteadvoidsetMaxHeaderListSize(int maxHeaderListSize)voidsetMaxTableCapacity(int maxTableCapacity)Sets the limit for the capacity of the dynamic header table.static java.lang.StringtoISO88591String(java.nio.ByteBuffer buffer, int length)java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
LOGpublic static final Logger LOG 
 - 
CONTENT_LENGTH_0public static final HttpField.LongValueHttpField CONTENT_LENGTH_0 
 
- 
 - 
Constructor Detail- 
HpackDecoder@Deprecated public HpackDecoder(int localMaxDynamicTableSize, int maxHeaderSize)Deprecated.
 - 
HpackDecoderpublic HpackDecoder(int maxHeaderSize) - Parameters:
- maxHeaderSize- The maximum allowed size of a decoded headers block, expressed as total of all name and value bytes, plus 32 bytes per field
 
 
- 
 - 
Method Detail- 
getHpackContextpublic HpackContext getHpackContext() 
 - 
getMaxTableCapacitypublic int getMaxTableCapacity() 
 - 
setMaxTableCapacitypublic void setMaxTableCapacity(int maxTableCapacity) Sets the limit for the capacity of the dynamic header table. This value acts as a limit for the values received from the remote peer via the HPACK dynamic table size update instruction. After calling this method, a SETTINGS frame must be sent to the other peer, containing the SETTINGS_HEADER_TABLE_SIZEsetting with the value passed as argument to this method.- Parameters:
- maxTableCapacity- the limit for capacity of the dynamic header table
 
 - 
setLocalMaxDynamicTableSize@Deprecated public void setLocalMaxDynamicTableSize(int maxTableSizeLimit) Deprecated.usesetMaxTableCapacity(int)instead- Parameters:
- maxTableSizeLimit- the local dynamic table max size
 
 - 
getMaxHeaderListSizepublic int getMaxHeaderListSize() 
 - 
setMaxHeaderListSizepublic void setMaxHeaderListSize(int maxHeaderListSize) 
 - 
decodepublic MetaData decode(java.nio.ByteBuffer buffer) throws HpackException.SessionException, HpackException.StreamException 
 - 
toISO88591Stringpublic static java.lang.String toISO88591String(java.nio.ByteBuffer buffer, int length)
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-