org.jboss.netty.handler.codec.http
类 HttpContentCompressor

java.lang.Object
  继承者 org.jboss.netty.channel.SimpleChannelHandler
      继承者 org.jboss.netty.handler.codec.http.HttpContentEncoder
          继承者 org.jboss.netty.handler.codec.http.HttpContentCompressor
所有已实现的接口:
ChannelDownstreamHandler, ChannelHandler, ChannelUpstreamHandler

public class HttpContentCompressor
extends HttpContentEncoder

Compresses an HttpMessage and an HttpChunk in gzip or deflate encoding while respecting the "Accept-Encoding" header. If there is no matching encoding, no compression is done. For more information on how this handler modifies the message, please refer to HttpContentEncoder.


嵌套类摘要
 
从接口 org.jboss.netty.channel.ChannelHandler 继承的嵌套类/接口
ChannelHandler.Sharable
 
构造方法摘要
HttpContentCompressor()
          Creates a new handler with the default compression level (6).
HttpContentCompressor(int compressionLevel)
          Creates a new handler with the specified compression level.
 
方法摘要
 
从类 org.jboss.netty.handler.codec.http.HttpContentEncoder 继承的方法
messageReceived, writeRequested
 
从类 org.jboss.netty.channel.SimpleChannelHandler 继承的方法
bindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

HttpContentCompressor

public HttpContentCompressor()
Creates a new handler with the default compression level (6).


HttpContentCompressor

public HttpContentCompressor(int compressionLevel)
Creates a new handler with the specified compression level.

参数:
compressionLevel - 1 yields the fastest compression and 9 yields the best compression. 0 means no compression. The default compression level is 6.