public class HttpContentDecompressor extends HttpContentDecoder
HttpMessage
and an HttpChunk
compressed in
gzip
or deflate
encoding. For more information on how this
handler modifies the message, please refer to HttpContentDecoder
.ChannelHandler.Sharable
构造器和说明 |
---|
HttpContentDecompressor() |
限定符和类型 | 方法和说明 |
---|---|
protected DecoderEmbedder<ChannelBuffer> |
newContentDecoder(java.lang.String contentEncoding)
Returns a new
DecoderEmbedder that decodes the HTTP message
content encoded in the specified contentEncoding. |
afterAdd, afterRemove, beforeAdd, beforeRemove, channelClosed, getTargetContentEncoding, messageReceived
channelBound, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, exceptionCaught, handleUpstream, writeComplete
protected DecoderEmbedder<ChannelBuffer> newContentDecoder(java.lang.String contentEncoding) throws java.lang.Exception
HttpContentDecoder
DecoderEmbedder
that decodes the HTTP message
content encoded in the specified contentEncoding.newContentDecoder
在类中 HttpContentDecoder
contentEncoding
- the value of the "Content-Encoding"
headerDecoderEmbedder
if the specified encoding is supported.
null
otherwise (alternatively, you can throw an exception
to block unknown encoding).java.lang.Exception