Class ProxyTunnelInitHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelDuplexHandler
-
- software.amazon.awssdk.http.nio.netty.internal.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.
-
-
Field Summary
Fields Modifier and Type Field Description static NettyClientLogger
log
-
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
-
-
-
-
Field Detail
-
log
public static final NettyClientLogger log
-
-
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 interfaceio.netty.channel.ChannelHandler
- Overrides:
handlerAdded
in classio.netty.channel.ChannelHandlerAdapter
-
handlerRemoved
public void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
handlerRemoved
in interfaceio.netty.channel.ChannelHandler
- Overrides:
handlerRemoved
in classio.netty.channel.ChannelHandlerAdapter
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
- Specified by:
channelRead
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelRead
in classio.netty.channel.ChannelInboundHandlerAdapter
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
channelInactive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelInactive
in classio.netty.channel.ChannelInboundHandlerAdapter
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
- Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelHandler
- Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
exceptionCaught
in classio.netty.channel.ChannelInboundHandlerAdapter
-
-