类 WebSocketNettyHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<T>
com.walker.tcp.netty.AbstractChannelInBoundHandler<Object>
com.walker.tcp.netty.DefaultLongHandler
com.walker.tcp.netty.WebSocketNettyHandler
- 所有已实现的接口:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
-
嵌套类概要
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
字段概要
从类继承的字段 com.walker.tcp.netty.AbstractChannelInBoundHandler
connectionManager, logger, msgThreadLocal, tcpServerHandler -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidchannelReadComplete(io.netty.channel.ChannelHandlerContext ctx) getUri()voidhandleHttpRequest(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest req) 第一次请求是http请求,请求头包括ws的信息void从类继承的方法 com.walker.tcp.netty.AbstractChannelInBoundHandler
channelActive, channelInactive, exceptionCaught, handlerRemoved, setConnectionManager, setTcpServerHandler, userEventTriggered从类继承的方法 io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter
channelRegistered, channelUnregistered, channelWritabilityChanged从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, isSharable从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 io.netty.channel.ChannelHandler
handlerAdded
-
构造器详细资料
-
WebSocketNettyHandler
public WebSocketNettyHandler()
-
-
方法详细资料
-
getUri
-
setUri
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception - 覆盖:
channelRead0在类中DefaultLongHandler- 抛出:
Exception
-
channelReadComplete
- 指定者:
channelReadComplete在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelReadComplete在类中DefaultLongHandler- 抛出:
Exception
-
handleHttpRequest
public void handleHttpRequest(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest req) 第一次请求是http请求,请求头包括ws的信息- 参数:
ctx-req-
-