Class SslClientChannelInitializer

    • Constructor Summary

      Constructors 
      Constructor Description
      SslClientChannelInitializer​(io.netty.handler.ssl.SslContext sslContext, java.lang.String hostnameVerificationAlgorithm, java.lang.String hostnameVerificationHost, int hostnameVerificationPort, boolean deferSslHandler)
      New instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(io.netty.channel.Channel channel)
      Configures the passed Channel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SslClientChannelInitializer

        public SslClientChannelInitializer​(io.netty.handler.ssl.SslContext sslContext,
                                           @Nullable
                                           java.lang.String hostnameVerificationAlgorithm,
                                           @Nullable
                                           java.lang.String hostnameVerificationHost,
                                           int hostnameVerificationPort,
                                           boolean deferSslHandler)
        New instance.
        Parameters:
        sslContext - to use for configuring SSL.
        hostnameVerificationAlgorithm - hostname verification algorithm.
        hostnameVerificationHost - the non-authoritative name of the host.
        hostnameVerificationPort - the non-authoritative port.
        deferSslHandler - true to wrap the SslHandler in a DeferSslHandler.
    • Method Detail

      • 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.