|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object org.jboss.netty.channel.SimpleChannelHandler org.jboss.netty.handler.codec.http.HttpContentEncoder org.jboss.netty.handler.codec.http.HttpContentCompressor
public class HttpContentCompressor
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 |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public HttpContentCompressor()
public HttpContentCompressor(int compressionLevel)
compressionLevel
- 1
yields the fastest compression and 9
yields the
best compression. 0
means no compression. The default
compression level is 6
.
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |