Class SniServerChannelInitializer

java.lang.Object
io.servicetalk.transport.netty.internal.SniServerChannelInitializer
All Implemented Interfaces:
ChannelInitializer

public final class SniServerChannelInitializer extends Object implements ChannelInitializer
SNI ChannelInitializer for servers.
  • Constructor Details

    • SniServerChannelInitializer

      @Deprecated public SniServerChannelInitializer(io.netty.util.Mapping<String,io.netty.handler.ssl.SslContext> sniMapping)
      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 to 2^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 passed Channel.

      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 interface ChannelInitializer
      Parameters:
      channel - Netty Channel.