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

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

public class HttpClientCodec
extends java.lang.Object
implements ChannelUpstreamHandler, ChannelDownstreamHandler

A combination of HttpRequestEncoder and HttpResponseDecoder which enables easier client side HTTP implementation. HttpClientCodec provides additional state management for HEAD and CONNECT requests, which HttpResponseDecoder lacks. Please refer to HttpResponseDecoder to learn what additional state management needs to be done for HEAD and CONNECT and why HttpResponseDecoder can not handle it by itself.

另请参见:
HttpServerCodec

嵌套类摘要
 
从接口 org.jboss.netty.channel.ChannelHandler 继承的嵌套类/接口
ChannelHandler.Sharable
 
构造方法摘要
HttpClientCodec()
          Creates a new instance with the default decoder options (maxInitialLineLength (4096}, maxHeaderSize (8192), and maxChunkSize (8192)).
HttpClientCodec(int maxInitialLineLength, int maxHeaderSize, int maxChunkSize)
          Creates a new instance with the specified decoder options.
 
方法摘要
 void handleDownstream(ChannelHandlerContext ctx, ChannelEvent e)
          处理指定的下游事件.
 void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)
          处理一个指定的上游事件.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

HttpClientCodec

public HttpClientCodec()
Creates a new instance with the default decoder options (maxInitialLineLength (4096}, maxHeaderSize (8192), and maxChunkSize (8192)).


HttpClientCodec

public HttpClientCodec(int maxInitialLineLength,
                       int maxHeaderSize,
                       int maxChunkSize)
Creates a new instance with the specified decoder options.

方法详细信息

handleUpstream

public void handleUpstream(ChannelHandlerContext ctx,
                           ChannelEvent e)
                    throws java.lang.Exception
从接口 ChannelUpstreamHandler 复制的描述
处理一个指定的上游事件.

指定者:
接口 ChannelUpstreamHandler 中的 handleUpstream
参数:
ctx - 处理器的上下文对象
e - 要处理或拦截的事件
抛出:
java.lang.Exception

handleDownstream

public void handleDownstream(ChannelHandlerContext ctx,
                             ChannelEvent e)
                      throws java.lang.Exception
从接口 ChannelDownstreamHandler 复制的描述
处理指定的下游事件.

指定者:
接口 ChannelDownstreamHandler 中的 handleDownstream
参数:
ctx - 处理器的上下文对象
e - 要处理或拦截的事件
抛出:
java.lang.Exception