com.alibaba.dubbo.qos.server.handler
Class HttpProcessHandler

java.lang.Object
  extended by io.netty.channel.ChannelHandlerAdapter
      extended by io.netty.channel.ChannelInboundHandlerAdapter
          extended by io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>
              extended by com.alibaba.dubbo.qos.server.handler.HttpProcessHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class HttpProcessHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>

 根据传入的HttpRequest进行解析,分析uri以及参数

 如果命令没有找到返回404
 如果执行失败500
 执行成功则返回内容200

 Http连接均在执行完毕之后断开
 

Author:
weipeng2k 2015年9月1日 下午5:13:56

Nested Class Summary
 
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
HttpProcessHandler()
           
 
Method Summary
 
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
 
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
handlerAdded, handlerRemoved, isSharable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
 

Constructor Detail

HttpProcessHandler

public HttpProcessHandler()


Copyright © 2012–2017 Alibaba. All rights reserved.