public class NettyHttpChannelHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
| 限定符和类型 | 字段和说明 |
|---|---|
private ConnectionHelper |
connectionHelper |
private Thread.UncaughtExceptionHandler |
exceptionHandler |
private Executor |
executor |
private List<HttpHandler> |
httpHandlers |
private Object |
id |
private static Object |
IGNORE_REQUEST |
private Thread.UncaughtExceptionHandler |
ioExceptionHandler |
private long |
timestamp |
| 构造器和说明 |
|---|
NettyHttpChannelHandler(Executor executor,
List<HttpHandler> httpHandlers,
Object id,
long timestamp,
Thread.UncaughtExceptionHandler exceptionHandler,
Thread.UncaughtExceptionHandler ioExceptionHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
private void |
handleHttpRequest(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent,
org.jboss.netty.handler.codec.http.HttpRequest httpRequest) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent) |
private static final Object IGNORE_REQUEST
private final Executor executor
private final List<HttpHandler> httpHandlers
private final Object id
private final long timestamp
private final Thread.UncaughtExceptionHandler exceptionHandler
private final Thread.UncaughtExceptionHandler ioExceptionHandler
private final ConnectionHelper connectionHelper
public NettyHttpChannelHandler(Executor executor, List<HttpHandler> httpHandlers, Object id, long timestamp, Thread.UncaughtExceptionHandler exceptionHandler, Thread.UncaughtExceptionHandler ioExceptionHandler)
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent)
throws Exception
messageReceived 在类中 org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionprivate void handleHttpRequest(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent,
org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
exceptionCaught 在类中 org.jboss.netty.channel.SimpleChannelUpstreamHandlerCopyright © 2014. All rights reserved.