public class HttpContentDecompressor extends HttpContentDecoder
HttpMessage and an HttpContent compressed in
gzip or deflate encoding. For more information on how this
handler modifies the message, please refer to HttpContentDecoder.ChannelHandler.Sharablectx| Constructor and Description |
|---|
HttpContentDecompressor()
Deprecated.
|
HttpContentDecompressor(boolean strict)
Deprecated.
|
HttpContentDecompressor(boolean strict,
int maxAllocation)
Create a new
HttpContentDecompressor. |
HttpContentDecompressor(int maxAllocation)
Create a new
HttpContentDecompressor in non-strict mode. |
| Modifier and Type | Method and Description |
|---|---|
protected EmbeddedChannel |
newContentDecoder(String contentEncoding)
Returns a new
EmbeddedChannel that decodes the HTTP message
content encoded in the specified contentEncoding. |
channelInactive, channelReadComplete, decode, getTargetContentEncoding, handlerAdded, handlerRemovedacceptInboundMessage, channelReadchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, isSharable@Deprecated public HttpContentDecompressor()
HttpContentDecompressor(int).HttpContentDecompressor in non-strict mode.public HttpContentDecompressor(int maxAllocation)
HttpContentDecompressor in non-strict mode.maxAllocation - Maximum size of the decompression buffer. Must be >= 0. If zero, maximum size is not limited.@Deprecated public HttpContentDecompressor(boolean strict)
HttpContentDecompressor(boolean, int).HttpContentDecompressor.strict - if true use strict handling of deflate if used, otherwise handle it in a
more lenient fashion.public HttpContentDecompressor(boolean strict,
int maxAllocation)
HttpContentDecompressor.strict - if true use strict handling of deflate if used, otherwise handle it in a
more lenient fashion.maxAllocation - Maximum size of the decompression buffer. Must be >= 0. If zero, maximum size is not limited.protected EmbeddedChannel newContentDecoder(String contentEncoding) throws Exception
HttpContentDecoderEmbeddedChannel that decodes the HTTP message
content encoded in the specified contentEncoding.newContentDecoder in class HttpContentDecodercontentEncoding - the value of the "Content-Encoding" headerEmbeddedChannel if the specified encoding is supported.
null otherwise (alternatively, you can throw an exception
to block unknown encoding).ExceptionCopyright © 2008–2025 The Netty Project. All rights reserved.