类 PortUnificationServerHandler

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

    public class PortUnificationServerHandler
    extends io.netty.handler.codec.ByteToMessageDecoder
    • 嵌套类概要

      • 从类继承的嵌套类/接口 io.netty.handler.codec.ByteToMessageDecoder

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

        io.netty.channel.ChannelHandler.Sharable
    • 字段概要

      • 从类继承的字段 io.netty.handler.codec.ByteToMessageDecoder

        COMPOSITE_CUMULATOR, MERGE_CUMULATOR
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void channelActive​(io.netty.channel.ChannelHandlerContext ctx)  
      void channelInactive​(io.netty.channel.ChannelHandlerContext ctx)  
      void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)  
      io.netty.channel.group.DefaultChannelGroup getChannels()  
      • 从类继承的方法 io.netty.handler.codec.ByteToMessageDecoder

        channelRead, channelReadComplete, handlerRemoved, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
      • 从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter

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

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

        handlerAdded
    • 构造器详细资料

      • PortUnificationServerHandler

        public PortUnificationServerHandler​(List<WireProtocol> protocols)
      • PortUnificationServerHandler

        public PortUnificationServerHandler​(io.netty.handler.ssl.SslContext sslCtx,
                                            List<WireProtocol> protocols)
      • PortUnificationServerHandler

        public PortUnificationServerHandler​(io.netty.handler.ssl.SslContext sslCtx,
                                            boolean detectSsl,
                                            List<WireProtocol> protocols)
    • 方法详细资料

      • exceptionCaught

        public void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx,
                                    Throwable cause)
                             throws Exception
        指定者:
        exceptionCaught 在接口中 io.netty.channel.ChannelHandler
        指定者:
        exceptionCaught 在接口中 io.netty.channel.ChannelInboundHandler
        覆盖:
        exceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapter
        抛出:
        Exception
      • getChannels

        public io.netty.channel.group.DefaultChannelGroup getChannels()
      • channelActive

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

        public void channelInactive​(io.netty.channel.ChannelHandlerContext ctx)
                             throws Exception
        指定者:
        channelInactive 在接口中 io.netty.channel.ChannelInboundHandler
        覆盖:
        channelInactive 在类中 io.netty.handler.codec.ByteToMessageDecoder
        抛出:
        Exception