Class ALPNHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public class ALPNHandler
    extends io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
    Handler responsible for TLS/ALPN negotiation.
    Author:
    Sebastian Ɓaskawiec
    • Nested Class Summary

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

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

      • restServer

        protected final RestServer restServer
    • Constructor Detail

      • ALPNHandler

        public ALPNHandler​(RestServer restServer)
    • Method Detail

      • configurePipeline

        public void configurePipeline​(io.netty.channel.ChannelHandlerContext ctx,
                                      String protocol)
        Specified by:
        configurePipeline in class io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
      • configurePipeline

        public static void configurePipeline​(io.netty.channel.ChannelPipeline pipeline,
                                             String protocol,
                                             RestServer restServer,
                                             Map<String,​ProtocolServer<?>> upgradeServers)