Class RestChannelInitializer

  • All Implemented Interfaces:
    org.infinispan.server.core.transport.NettyInitializer

    public class RestChannelInitializer
    extends org.infinispan.server.core.transport.NettyChannelInitializer<RestServerConfiguration>
    Creates Netty Channels for this server.

    With ALPN support, this class acts only as a bridge between Server Core and ALPN Handler which bootstraps pipeline handlers

    Author:
    Sebastian Ɓaskawiec
    • Constructor Detail

      • RestChannelInitializer

        public RestChannelInitializer​(RestServer restServer,
                                      org.infinispan.server.core.transport.NettyTransport transport)
        Parameters:
        restServer - Rest Server this initializer belongs to.
        transport - Netty transport.
    • Method Detail

      • initializeChannel

        public void initializeChannel​(io.netty.channel.Channel ch)
                               throws Exception
        Throws:
        Exception
      • getAlpnConfiguration

        protected io.netty.handler.ssl.ApplicationProtocolConfig getAlpnConfiguration()
      • getRestHandler

        public io.netty.channel.ChannelHandler getRestHandler()