类 ServiceChannelInitializer

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

    public class ServiceChannelInitializer
    extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
    Initialize service channel handlers.
    • 嵌套类概要

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

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

      字段 
      修饰符和类型 字段 说明
      static java.lang.String TLS_HANDLER  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      protected void initChannel​(io.netty.channel.socket.SocketChannel ch)  
      • 从类继承的方法 io.netty.channel.ChannelInitializer

        channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
      • 从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter

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

        ensureNotSharable, isSharable
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • TLS_HANDLER

        public static final java.lang.String TLS_HANDLER
        另请参阅:
        常量字段值
    • 构造器详细资料

      • ServiceChannelInitializer

        public ServiceChannelInitializer​(ProxyService proxyService,
                                         ProxyConfiguration serviceConfig,
                                         boolean enableTls)
                                  throws java.lang.Exception
        抛出:
        java.lang.Exception
    • 方法详细资料

      • initChannel

        protected void initChannel​(io.netty.channel.socket.SocketChannel ch)
                            throws java.lang.Exception
        指定者:
        initChannel 在类中 io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
        抛出:
        java.lang.Exception