Package io.grpc.netty
Class ProtocolNegotiators.ProxyProtocolNegotiationHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelDuplexHandler
-
- io.grpc.netty.ProtocolNegotiators.ProtocolNegotiationHandler
-
- io.grpc.netty.ProtocolNegotiators.ProxyProtocolNegotiationHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler
- Enclosing class:
- ProtocolNegotiators
static final class ProtocolNegotiators.ProxyProtocolNegotiationHandler extends ProtocolNegotiators.ProtocolNegotiationHandler
A Proxy handler followsProtocolNegotiators.ProtocolNegotiationHandlerpattern. Upon successful proxy connection, this handler will installnexthandler which should be a handler from other type ofProtocolNegotiatorto continue negotiating protocol using proxy.
-
-
Constructor Summary
Constructors Constructor Description ProxyProtocolNegotiationHandler(java.net.SocketAddress address, java.lang.String userName, java.lang.String password, io.netty.channel.ChannelHandler next, ChannelLogger negotiationLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprotocolNegotiationEventTriggered(io.netty.channel.ChannelHandlerContext ctx)protected voiduserEventTriggered0(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object evt)-
Methods inherited from class io.grpc.netty.ProtocolNegotiators.ProtocolNegotiationHandler
fireProtocolNegotiationEvent, getProtocolNegotiationEvent, handlerAdded, handlerAdded0, replaceProtocolNegotiationEvent, userEventTriggered
-
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, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
ProxyProtocolNegotiationHandler
public ProxyProtocolNegotiationHandler(java.net.SocketAddress address, @Nullable java.lang.String userName, @Nullable java.lang.String password, io.netty.channel.ChannelHandler next, ChannelLogger negotiationLogger)
-
-
Method Detail
-
protocolNegotiationEventTriggered
protected void protocolNegotiationEventTriggered(io.netty.channel.ChannelHandlerContext ctx)
- Overrides:
protocolNegotiationEventTriggeredin classProtocolNegotiators.ProtocolNegotiationHandler
-
userEventTriggered0
protected void userEventTriggered0(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object evt) throws java.lang.Exception- Overrides:
userEventTriggered0in classProtocolNegotiators.ProtocolNegotiationHandler- Throws:
java.lang.Exception
-
-