Class ClientSslStandardChannelInitializer<T extends io.netty.channel.Channel>

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<T>
org.apache.nifi.event.transport.netty.channel.StandardChannelInitializer<T>
org.apache.nifi.event.transport.netty.channel.ssl.ClientSslStandardChannelInitializer<T>
Type Parameters:
T - Channel Type
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class ClientSslStandardChannelInitializer<T extends io.netty.channel.Channel> extends StandardChannelInitializer<T>
Client SSL Standard Channel Initializer supporting TLS with SSLContext configuration
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final SSLContext
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClientSslStandardChannelInitializer(Supplier<List<io.netty.channel.ChannelHandler>> handlerSupplier, SSLContext sslContext)
    Client SSL Channel Initializer with handlers and SSLContext
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    initChannel(io.netty.channel.Channel channel)
     
    private io.netty.handler.ssl.SslHandler
     

    Methods inherited from class org.apache.nifi.event.transport.netty.channel.StandardChannelInitializer

    setIdleTimeout, setWriteTimeout

    Methods inherited from class io.netty.channel.ChannelInitializer

    channelRegistered, exceptionCaught, handlerAdded, handlerRemoved

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • sslContext

      private final SSLContext sslContext
  • Constructor Details

    • ClientSslStandardChannelInitializer

      public ClientSslStandardChannelInitializer(Supplier<List<io.netty.channel.ChannelHandler>> handlerSupplier, SSLContext sslContext)
      Client SSL Channel Initializer with handlers and SSLContext
      Parameters:
      handlerSupplier - Channel Handler Supplier
      sslContext - SSLContext
  • Method Details

    • initChannel

      protected void initChannel(io.netty.channel.Channel channel)
      Overrides:
      initChannel in class StandardChannelInitializer<T extends io.netty.channel.Channel>
    • newSslHandler

      private io.netty.handler.ssl.SslHandler newSslHandler()