@ChannelHandler.Sharable
public class HttpServerHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>
限定符和类型 | 字段和说明 |
---|---|
static boolean |
PERFORMANCE |
static io.netty.util.concurrent.FastThreadLocal<WebContext> |
WEB_CONTEXT_THREAD_LOCAL |
构造器和说明 |
---|
HttpServerHandler() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpObject msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
static LocalContext |
getLocalContext() |
static void |
setLocalContext(LocalContext localContext) |
channelActive, channelInactive, channelRegistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public static final io.netty.util.concurrent.FastThreadLocal<WebContext> WEB_CONTEXT_THREAD_LOCAL
public static final boolean PERFORMANCE
public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelUnregistered
在接口中 io.netty.channel.ChannelInboundHandler
channelUnregistered
在类中 io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
channelReadComplete
在接口中 io.netty.channel.ChannelInboundHandler
channelReadComplete
在类中 io.netty.channel.ChannelInboundHandlerAdapter
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpObject msg)
channelRead0
在类中 io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
在接口中 io.netty.channel.ChannelHandler
exceptionCaught
在接口中 io.netty.channel.ChannelInboundHandler
exceptionCaught
在类中 io.netty.channel.ChannelInboundHandlerAdapter
public static LocalContext getLocalContext()
public static void setLocalContext(LocalContext localContext)
Copyright © 2018. All rights reserved.