类 HttpServerHandler

  • 所有已实现的接口:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public class HttpServerHandler
    extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
    ClassName: HttpServerHandler Description: date: 2020/8/17 20:47
    从以下版本开始:
    JDK 1.8
    作者:
    ThierrySquirrel
    • 嵌套类概要

      • 从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • 构造器概要

      构造器 
      构造器 说明
      HttpServerHandler​(int maxFramePayloadLength, int readTimeoutMilli)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      protected void channelRead0​(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest msg)  
      void userEventTriggered​(io.netty.channel.ChannelHandlerContext ctx, Object evt)  
      • 从类继承的方法 io.netty.channel.SimpleChannelInboundHandler

        acceptInboundMessage, channelRead
      • 从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
      • 从类继承的方法 io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • 从接口继承的方法 io.netty.channel.ChannelHandler

        handlerAdded, handlerRemoved
    • 构造器详细资料

      • HttpServerHandler

        public HttpServerHandler​(int maxFramePayloadLength,
                                 int readTimeoutMilli)
    • 方法详细资料

      • channelRead0

        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>
        抛出:
        Exception
      • userEventTriggered

        public void userEventTriggered​(io.netty.channel.ChannelHandlerContext ctx,
                                       Object evt)
                                throws Exception
        指定者:
        userEventTriggered 在接口中 io.netty.channel.ChannelInboundHandler
        覆盖:
        userEventTriggered 在类中 io.netty.channel.ChannelInboundHandlerAdapter
        抛出:
        Exception