Class HpackEncoder
java.lang.Object
org.eclipse.jetty.http2.hpack.HpackEncoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(ByteBuffer buffer, HttpField field) voidencode(ByteBuffer buffer, MetaData metadata) voidencodeMaxDynamicTableSize(ByteBuffer buffer, int maxTableSize) intintintbooleanvoidsetMaxHeaderListSize(int maxHeaderListSize) voidsetMaxTableCapacity(int maxTableSizeLimit) Sets the limit for the capacity of the dynamic header table.voidsetTableCapacity(int tableCapacity) Sets the capacity of the dynamic header table.voidsetValidateEncoding(boolean validateEncoding)
-
Constructor Details
-
HpackEncoder
public HpackEncoder()
-
-
Method Details
-
getMaxTableCapacity
public int getMaxTableCapacity() -
setMaxTableCapacity
public void setMaxTableCapacity(int maxTableSizeLimit) Sets the limit for the capacity of the dynamic header table.
This value is set by the remote peer via the
SETTINGS_HEADER_TABLE_SIZEsetting.- Parameters:
maxTableSizeLimit- the limit for capacity of the dynamic header table
-
getTableCapacity
public int getTableCapacity() -
setTableCapacity
public void setTableCapacity(int tableCapacity) Sets the capacity of the dynamic header table.
The value of the capacity may be changed from
0up togetMaxTableCapacity(). An HPACK instruction with the new capacity value will be sent to the decoder when the next call toencode(ByteBuffer, MetaData)is made.- Parameters:
tableCapacity- the capacity of the dynamic header table
-
getMaxHeaderListSize
public int getMaxHeaderListSize() -
setMaxHeaderListSize
public void setMaxHeaderListSize(int maxHeaderListSize) -
getHpackContext
-
isValidateEncoding
public boolean isValidateEncoding() -
setValidateEncoding
public void setValidateEncoding(boolean validateEncoding) -
encode
- Throws:
HpackException
-
encodeMaxDynamicTableSize
-
encode
-