Package org.eclipse.jetty.http2.hpack
Class HpackEncoder
- java.lang.Object
-
- org.eclipse.jetty.http2.hpack.HpackEncoder
-
public class HpackEncoder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HpackEncoder()HpackEncoder(int localMaxDynamicTableSize)Deprecated.HpackEncoder(int localMaxDynamicTableSize, int remoteMaxDynamicTableSize)Deprecated.HpackEncoder(int localMaxDynamicTableSize, int remoteMaxDynamicTableSize, int maxHeaderListSize)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidencode(java.nio.ByteBuffer buffer, HttpField field)voidencode(java.nio.ByteBuffer buffer, MetaData metadata)voidencodeMaxDynamicTableSize(java.nio.ByteBuffer buffer, int maxTableSize)HpackContextgetHpackContext()intgetMaxHeaderListSize()intgetMaxTableCapacity()intgetTableCapacity()booleanisValidateEncoding()voidsetLocalMaxDynamicTableSize(int maxTableSizeLimit)Deprecated.voidsetMaxHeaderListSize(int maxHeaderListSize)voidsetMaxTableCapacity(int maxTableSizeLimit)Sets the limit for the capacity of the dynamic header table.voidsetRemoteMaxDynamicTableSize(int maxTableSize)Deprecated.voidsetTableCapacity(int tableCapacity)Sets the capacity of the dynamic header table.voidsetValidateEncoding(boolean validateEncoding)
-
-
-
Constructor Detail
-
HpackEncoder
@Deprecated public HpackEncoder(int localMaxDynamicTableSize)
Deprecated.
-
HpackEncoder
@Deprecated public HpackEncoder(int localMaxDynamicTableSize, int remoteMaxDynamicTableSize)Deprecated.
-
HpackEncoder
@Deprecated public HpackEncoder(int localMaxDynamicTableSize, int remoteMaxDynamicTableSize, int maxHeaderListSize)Deprecated.
-
HpackEncoder
public HpackEncoder()
-
-
Method Detail
-
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
public HpackContext getHpackContext()
-
setRemoteMaxDynamicTableSize
@Deprecated public void setRemoteMaxDynamicTableSize(int maxTableSize)
Deprecated.
-
setLocalMaxDynamicTableSize
@Deprecated public void setLocalMaxDynamicTableSize(int maxTableSizeLimit)
Deprecated.
-
isValidateEncoding
public boolean isValidateEncoding()
-
setValidateEncoding
public void setValidateEncoding(boolean validateEncoding)
-
encode
public void encode(java.nio.ByteBuffer buffer, MetaData metadata) throws HpackException- Throws:
HpackException
-
encodeMaxDynamicTableSize
public void encodeMaxDynamicTableSize(java.nio.ByteBuffer buffer, int maxTableSize)
-
encode
public void encode(java.nio.ByteBuffer buffer, HttpField field)
-
-