Class ProxyTunnelInitHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler

    public final class ProxyTunnelInitHandler
    extends io.netty.channel.ChannelDuplexHandler
    Handler that initializes the HTTP tunnel.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Constructor Summary

      Constructors 
      Constructor Description
      ProxyTunnelInitHandler​(io.netty.channel.pool.ChannelPool sourcePool, String proxyUsername, String proxyPassword, URI remoteHost, io.netty.util.concurrent.Promise<io.netty.channel.Channel> initPromise)  
      ProxyTunnelInitHandler​(io.netty.channel.pool.ChannelPool sourcePool, String prosyUsername, String proxyPassword, URI remoteHost, io.netty.util.concurrent.Promise<io.netty.channel.Channel> initPromise, Supplier<io.netty.handler.codec.http.HttpClientCodec> httpCodecSupplier)  
      ProxyTunnelInitHandler​(io.netty.channel.pool.ChannelPool sourcePool, URI remoteHost, io.netty.util.concurrent.Promise<io.netty.channel.Channel> initPromise)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void channelInactive​(io.netty.channel.ChannelHandlerContext ctx)  
      void channelRead​(io.netty.channel.ChannelHandlerContext ctx, Object msg)  
      void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)  
      void handlerAdded​(io.netty.channel.ChannelHandlerContext ctx)  
      void handlerRemoved​(io.netty.channel.ChannelHandlerContext ctx)  
      • Methods inherited from class io.netty.channel.ChannelDuplexHandler

        bind, close, connect, deregister, disconnect, flush, read, write
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, isSharable
    • Constructor Detail

      • ProxyTunnelInitHandler

        public ProxyTunnelInitHandler​(io.netty.channel.pool.ChannelPool sourcePool,
                                      String proxyUsername,
                                      String proxyPassword,
                                      URI remoteHost,
                                      io.netty.util.concurrent.Promise<io.netty.channel.Channel> initPromise)
      • ProxyTunnelInitHandler

        public ProxyTunnelInitHandler​(io.netty.channel.pool.ChannelPool sourcePool,
                                      URI remoteHost,
                                      io.netty.util.concurrent.Promise<io.netty.channel.Channel> initPromise)
      • ProxyTunnelInitHandler

        public ProxyTunnelInitHandler​(io.netty.channel.pool.ChannelPool sourcePool,
                                      String prosyUsername,
                                      String proxyPassword,
                                      URI remoteHost,
                                      io.netty.util.concurrent.Promise<io.netty.channel.Channel> initPromise,
                                      Supplier<io.netty.handler.codec.http.HttpClientCodec> httpCodecSupplier)
    • Method Detail

      • handlerAdded

        public void handlerAdded​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        handlerAdded in interface io.netty.channel.ChannelHandler
        Overrides:
        handlerAdded in class io.netty.channel.ChannelHandlerAdapter
      • handlerRemoved

        public void handlerRemoved​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        handlerRemoved in interface io.netty.channel.ChannelHandler
        Overrides:
        handlerRemoved in class io.netty.channel.ChannelHandlerAdapter
      • channelRead

        public void channelRead​(io.netty.channel.ChannelHandlerContext ctx,
                                Object msg)
        Specified by:
        channelRead in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
      • channelInactive

        public void channelInactive​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        channelInactive in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelInactive in class io.netty.channel.ChannelInboundHandlerAdapter
      • exceptionCaught

        public void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx,
                                    Throwable cause)
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelHandler
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter