Class SslClientChannelInitializer
java.lang.Object
io.servicetalk.transport.netty.internal.SslClientChannelInitializer
- All Implemented Interfaces:
ChannelInitializer
SSL
ChannelInitializer
for clients.-
Constructor Summary
ConstructorsConstructorDescriptionSslClientChannelInitializer
(io.netty.handler.ssl.SslContext sslContext, ClientSslConfig sslConfig, boolean deferSslHandler) New instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(io.netty.channel.Channel channel) Configures the passedChannel
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.servicetalk.transport.netty.internal.ChannelInitializer
andThen
-
Constructor Details
-
SslClientChannelInitializer
public SslClientChannelInitializer(io.netty.handler.ssl.SslContext sslContext, ClientSslConfig sslConfig, boolean deferSslHandler) New instance.- Parameters:
sslContext
- to use for configuring SSL with Netty.sslConfig
- contains additional SSL configuration used to create theSslHandler
.deferSslHandler
-true
to wrap theSslHandler
in aDeferSslHandler
.
-
-
Method Details
-
init
public void init(io.netty.channel.Channel channel) Description copied from interface:ChannelInitializer
Configures the passedChannel
.Typically, an initializer should add handlers to the channel at the end. This makes it possible for the code using the initializer to create the order of the handlers in the pipeline.
- Specified by:
init
in interfaceChannelInitializer
- Parameters:
channel
- NettyChannel
.
-