public class HttpServerHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
| 构造器和说明 |
|---|
HttpServerHandler(WebSocketEndpointServer webSocketEndpointServer,
WebSocketEndpointConfig webSocketEndpointConfig,
io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup,
boolean isCors) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx)
Close inactive connections
|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest msg)
Receive message
|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
Processing error
|
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic HttpServerHandler(WebSocketEndpointServer webSocketEndpointServer, WebSocketEndpointConfig webSocketEndpointConfig, io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup, boolean isCors)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest msg)
throws Exception
channelRead0 在类中 io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>ctx - ChannelHandlerContextmsg - FullHttpRequestExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterctx - ChannelHandlerContextcause - Throwablepublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive 在接口中 io.netty.channel.ChannelInboundHandlerchannelInactive 在类中 io.netty.channel.ChannelInboundHandlerAdapterctx - ChannelHandlerContextExceptionCopyright © 2023 twelvet. All rights reserved.