Package io.netty.handler.codec.http2
Class DelegatingDecompressorFrameListener.Http2Decompressor
- java.lang.Object
-
- io.netty.handler.codec.http2.DelegatingDecompressorFrameListener.Http2Decompressor
-
- Enclosing class:
- DelegatingDecompressorFrameListener
private static final class DelegatingDecompressorFrameListener.Http2Decompressor extends java.lang.Object
Provides the state for streamDATA
frame decompression.
-
-
Field Summary
Fields Modifier and Type Field Description private int
compressed
private int
decompressed
private EmbeddedChannel
decompressor
-
Constructor Summary
Constructors Constructor Description Http2Decompressor(EmbeddedChannel decompressor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
consumeBytes(int streamId, int decompressedBytes)
Determines the ratio betweennumBytes
anddecompressed
.(package private) EmbeddedChannel
decompressor()
Responsible for taking compressed bytes in and producing decompressed bytes.(package private) void
incrementCompressedBytes(int delta)
Increment the number of bytes received prior to doing any decompression.(package private) void
incrementDecompressedBytes(int delta)
Increment the number of bytes after the decompression process.
-
-
-
Field Detail
-
decompressor
private final EmbeddedChannel decompressor
-
compressed
private int compressed
-
decompressed
private int decompressed
-
-
Constructor Detail
-
Http2Decompressor
Http2Decompressor(EmbeddedChannel decompressor)
-
-
Method Detail
-
decompressor
EmbeddedChannel decompressor()
Responsible for taking compressed bytes in and producing decompressed bytes.
-
incrementCompressedBytes
void incrementCompressedBytes(int delta)
Increment the number of bytes received prior to doing any decompression.
-
incrementDecompressedBytes
void incrementDecompressedBytes(int delta)
Increment the number of bytes after the decompression process.
-
consumeBytes
int consumeBytes(int streamId, int decompressedBytes) throws Http2Exception
Determines the ratio betweennumBytes
anddecompressed
. This ratio is used to decrementdecompressed
andcompressed
.- Parameters:
streamId
- the stream IDdecompressedBytes
- The number of post-decompressed bytes to return to flow control- Returns:
- The number of pre-decompressed bytes that have been consumed.
- Throws:
Http2Exception
-
-