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.| Constructor and Description |
|---|
HttpContentDecompressor() |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.channel.embedded.EmbeddedByteChannel |
newContentDecoder(String contentEncoding)
Returns a new
EmbeddedByteChannel that decodes the HTTP message
content encoded in the specified contentEncoding. |
afterRemove, channelInactive, decode, getTargetContentEncodingacceptInboundMessage, beginMessageReceived, endMessageReceived, freeInboundBuffer, inboundBufferUpdated, newInboundBufferchannelActive, channelReadSuspended, channelRegistered, channelUnregistered, userEventTriggeredafterAdd, beforeAdd, beforeRemove, exceptionCaughtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected io.netty.channel.embedded.EmbeddedByteChannel newContentDecoder(String contentEncoding) throws Exception
HttpContentDecoderEmbeddedByteChannel that decodes the HTTP message
content encoded in the specified contentEncoding.newContentDecoder in class HttpContentDecodercontentEncoding - the value of the "Content-Encoding" headerEmbeddedByteChannel if the specified encoding is supported.
null otherwise (alternatively, you can throw an exception
to block unknown encoding).ExceptionCopyright © 2008-2013 The Netty Project. All Rights Reserved.