public class DefaultRequestDispatcher extends BaseRequestDispatcher
| 构造器和说明 |
|---|
DefaultRequestDispatcher() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
dispatch(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpObject msg)
子类分发处理逻辑
|
void |
handlePageResponse(io.netty.channel.ChannelHandlerContext ctx,
RBHttpRequest request,
java.lang.String pagePath,
io.netty.handler.codec.http.HttpResponseStatus status)
处理页面相应
|
void |
handlePostBody(io.netty.handler.codec.http.HttpObject msg)
处理post请求体
|
java.lang.Object |
invokeMethod(java.lang.Class target,
java.lang.reflect.Method method,
RBHttpRequest request,
RBHttpResponse response) |
channelActive, channelRead0, exceptionCaught, initchannelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredprotected void dispatch(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpObject msg)
throws java.lang.Exception
BaseRequestDispatcherdispatch 在类中 BaseRequestDispatcherctx - ChannelHandlerContextmsg - HttpObjectjava.lang.Exception - expublic void handlePostBody(io.netty.handler.codec.http.HttpObject msg)
throws java.io.UnsupportedEncodingException
msg - 请求体信息java.io.UnsupportedEncodingException - expublic void handlePageResponse(io.netty.channel.ChannelHandlerContext ctx,
RBHttpRequest request,
java.lang.String pagePath,
io.netty.handler.codec.http.HttpResponseStatus status)
throws java.io.IOException
ctx - ChannelHandlerContextrequest - 请求pagePath - 页面路径status - http response statusjava.io.IOException - expublic java.lang.Object invokeMethod(java.lang.Class target,
java.lang.reflect.Method method,
RBHttpRequest request,
RBHttpResponse response)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
java.lang.IllegalAccessExceptionjava.lang.InstantiationException