Class EchoServerHttpOrHttp2Initializer

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

    public class EchoServerHttpOrHttp2Initializer
    extends io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
    • Nested Class Summary

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

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

      Constructors 
      Modifier Constructor Description
      protected EchoServerHttpOrHttp2Initializer​(MockServerLogger mockServerLogger, io.netty.channel.socket.SocketChannel channel, BiConsumer<io.netty.channel.socket.SocketChannel,​io.netty.channel.ChannelPipeline> http1Initializer, BiConsumer<io.netty.channel.socket.SocketChannel,​io.netty.channel.ChannelPipeline> http2Initializer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configurePipeline​(io.netty.channel.ChannelHandlerContext ctx, String protocol)  
      • Methods inherited from class io.netty.handler.ssl.ApplicationProtocolNegotiationHandler

        channelInactive, channelRead, exceptionCaught, handlerAdded, handlerRemoved, handshakeFailure, userEventTriggered
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, isSharable
    • Constructor Detail

      • EchoServerHttpOrHttp2Initializer

        protected EchoServerHttpOrHttp2Initializer​(MockServerLogger mockServerLogger,
                                                   io.netty.channel.socket.SocketChannel channel,
                                                   BiConsumer<io.netty.channel.socket.SocketChannel,​io.netty.channel.ChannelPipeline> http1Initializer,
                                                   BiConsumer<io.netty.channel.socket.SocketChannel,​io.netty.channel.ChannelPipeline> http2Initializer)
    • Method Detail

      • configurePipeline

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