Package org.eclipse.jetty.http2.hpack
Class HpackDecoder
java.lang.Object
org.eclipse.jetty.http2.hpack.HpackDecoder
Hpack Decoder
This is not thread safe and may only be called by 1 thread at a time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpField.LongValueHttpFieldstatic final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(ByteBuffer buffer) intintvoidsetLocalMaxDynamicTableSize(int maxTableSizeLimit) Deprecated.voidsetMaxHeaderListSize(int maxHeaderListSize) voidsetMaxTableCapacity(int maxTableCapacity) Sets the limit for the capacity of the dynamic header table.static StringtoISO88591String(ByteBuffer buffer, int length) toString()
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
CONTENT_LENGTH_0
-
-
Constructor Details
-
HpackDecoder
- Parameters:
maxHeaderSize- The maximum allowed size of a decoded headers block, expressed as total of all name and value bytes, plus 32 bytes per fieldbeginNanoTimeSupplier- The supplier of a nano timestamp taken at the time the first byte was read
-
-
Method Details
-
getHpackContext
-
getMaxTableCapacity
public int getMaxTableCapacity() -
setMaxTableCapacity
public 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.usesetMaxTableCapacity(int)instead- Parameters:
maxTableSizeLimit- the local dynamic table max size
-
getMaxHeaderListSize
public int getMaxHeaderListSize() -
setMaxHeaderListSize
public void setMaxHeaderListSize(int maxHeaderListSize) -
decode
public MetaData decode(ByteBuffer buffer) throws HpackException.SessionException, HpackException.StreamException -
toISO88591String
-
toString
-
setMaxTableCapacity(int)instead