Package io.grpc.netty
Class ProtocolNegotiators.ClientTlsHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.grpc.netty.ProtocolNegotiators.ProtocolNegotiationHandler
io.grpc.netty.ProtocolNegotiators.ClientTlsHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
,io.netty.channel.ChannelOutboundHandler
- Enclosing class:
ProtocolNegotiators
static final class ProtocolNegotiators.ClientTlsHandler
extends ProtocolNegotiators.ProtocolNegotiationHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientTlsHandler
(io.netty.channel.ChannelHandler next, io.netty.handler.ssl.SslContext sslContext, String authority, Executor executor, ChannelLogger negotiationLogger, Optional<Runnable> handshakeCompleteRunnable) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
handlerAdded0
(io.netty.channel.ChannelHandlerContext ctx) private void
propagateTlsComplete
(io.netty.channel.ChannelHandlerContext ctx, SSLSession session) protected void
userEventTriggered0
(io.netty.channel.ChannelHandlerContext ctx, Object evt) Methods inherited from class io.grpc.netty.ProtocolNegotiators.ProtocolNegotiationHandler
fireProtocolNegotiationEvent, getProtocolNegotiationEvent, handlerAdded, protocolNegotiationEventTriggered, 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerRemoved
-
Field Details
-
sslContext
private final io.netty.handler.ssl.SslContext sslContext -
host
-
port
private final int port -
executor
-
handshakeCompleteRunnable
-
-
Constructor Details
-
ClientTlsHandler
ClientTlsHandler(io.netty.channel.ChannelHandler next, io.netty.handler.ssl.SslContext sslContext, String authority, Executor executor, ChannelLogger negotiationLogger, Optional<Runnable> handshakeCompleteRunnable)
-
-
Method Details
-
handlerAdded0
protected void handlerAdded0(io.netty.channel.ChannelHandlerContext ctx) - Overrides:
handlerAdded0
in classProtocolNegotiators.ProtocolNegotiationHandler
-
userEventTriggered0
protected void userEventTriggered0(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception - Overrides:
userEventTriggered0
in classProtocolNegotiators.ProtocolNegotiationHandler
- Throws:
Exception
-
propagateTlsComplete
-