Class SniServerChannelInitializer
java.lang.Object
io.servicetalk.transport.netty.internal.SniServerChannelInitializer
- All Implemented Interfaces:
ChannelInitializer
SNI
ChannelInitializer
for servers.-
Constructor Summary
ConstructorsConstructorDescriptionSniServerChannelInitializer
(io.netty.util.Mapping<String, io.netty.handler.ssl.SslContext> sniMapping) Deprecated.SniServerChannelInitializer
(io.netty.util.Mapping<String, io.netty.handler.ssl.SslContext> sniMapping, int maxClientHelloLength, long clientHelloTimeoutMillis) Create a 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
-
SniServerChannelInitializer
@Deprecated public SniServerChannelInitializer(io.netty.util.Mapping<String, io.netty.handler.ssl.SslContext> sniMapping) Deprecated.Create a new instance.- Parameters:
sniMapping
- to use for SNI configuration.
-
SniServerChannelInitializer
public SniServerChannelInitializer(io.netty.util.Mapping<String, io.netty.handler.ssl.SslContext> sniMapping, int maxClientHelloLength, long clientHelloTimeoutMillis) Create a new instance.- Parameters:
sniMapping
- to use for SNI configuration.maxClientHelloLength
- The maximum length of a ClientHello message in bytes, up to2^24 - 1
bytes. Zero (0
) disables validation.clientHelloTimeoutMillis
- The timeout in milliseconds for waiting until ClientHello message is received. Zero (0
) disables timeout.
-
-
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
.
-
SniServerChannelInitializer(Mapping, int, long)
.