类 WebSocketNettyHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<T>
所有已实现的接口:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class WebSocketNettyHandler extends DefaultLongHandler
  • 构造器详细资料

    • WebSocketNettyHandler

      public WebSocketNettyHandler()
  • 方法详细资料

    • getUri

      public String getUri()
    • setUri

      public void setUri(String uri)
    • channelRead0

      protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
      覆盖:
      channelRead0 在类中 DefaultLongHandler
      抛出:
      Exception
    • channelReadComplete

      public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      指定者:
      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 -