This is not thread safe and may only be called by 1 thread at a time.
| Modifier and Type | Field and Description |
|---|---|
| private final LongSupplier | |
| private final MetaDataBuilder | |
| private final HpackContext | |
| private final HuffmanDecoder | |
| private final NBitIntegerDecoder | |
| private int | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | HpackDecoder(int
The maximum allowed size of a decoded headers block,
expressed as total of all name and value bytes, plus 32 bytes per field maxHeaderSize, LongSupplier The supplier of a nano timestamp taken at
the time the first byte was read beginNanoTimeSupplier)
|
| Modifier and Type | Method and Description |
|---|---|
| public MetaData | |
| public HpackContext | |
| public int | |
| public int | |
| private String | |
| private int | |
| public void | |
| public void | setMaxTableCapacity(int
the limit for capacity of the dynamic header table maxTableCapacity)Sets the limit for the capacity of the dynamic header table. |
| public static String | |
| public String |
| _beginNanoTimeSupplier | back to summary |
|---|---|
| private final LongSupplier _beginNanoTimeSupplier | |
| _builder | back to summary |
|---|---|
| private final MetaDataBuilder _builder | |
| _context | back to summary |
|---|---|
| private final HpackContext _context | |
| _huffmanDecoder | back to summary |
|---|---|
| private final HuffmanDecoder _huffmanDecoder | |
| _integerDecoder | back to summary |
|---|---|
| private final NBitIntegerDecoder _integerDecoder | |
| _maxTableCapacity | back to summary |
|---|---|
| private int _maxTableCapacity | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| HpackDecoder | back to summary |
|---|---|
public HpackDecoder(int maxHeaderSize, LongSupplier beginNanoTimeSupplier)
| |
| decode | back to summary |
|---|---|
| public MetaData decode(ByteBuffer buffer) throws SessionException, StreamException | |
| getHpackContext | back to summary |
|---|---|
| public HpackContext getHpackContext() | |
| getMaxHeaderListSize | back to summary |
|---|---|
| public int getMaxHeaderListSize() | |
| getMaxTableCapacity | back to summary |
|---|---|
| public int getMaxTableCapacity() | |
| huffmanDecode | back to summary |
|---|---|
| private String huffmanDecode(ByteBuffer buffer, int length) throws CompressionException | |
| integerDecode | back to summary |
|---|---|
| private int integerDecode(ByteBuffer buffer, int prefix) throws CompressionException | |
| setMaxHeaderListSize | back to summary |
|---|---|
| public void setMaxHeaderListSize(int maxHeaderListSize) | |
| setMaxTableCapacity | back to summary |
|---|---|
| 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
| |
| toISO88591String | back to summary |
|---|---|
| public static String toISO88591String(ByteBuffer buffer, int length) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |