Class NettyHttpServerInitializer

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

    @Sharable
    public class NettyHttpServerInitializer
    extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
    The Netty Initializer used by the Netty implementation of HTTP Server.
    Author:
    Manfred Riem ([email protected])
    • Nested Class Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initChannel​(io.netty.channel.socket.SocketChannel channel)
      Initialize the channel.
      • 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
    • Constructor Detail

      • NettyHttpServerInitializer

        public NettyHttpServerInitializer​(HttpServerProcessor httpServerProcessor,
                                          boolean ssl)
        Constructor.
        Parameters:
        httpServerProcessor - the HTTP server processor.
        ssl - the ssl flag
    • Method Detail

      • initChannel

        public void initChannel​(io.netty.channel.socket.SocketChannel channel)
        Initialize the channel.
        Specified by:
        initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
        Parameters:
        channel - the channel.