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 (mriem@manorrock.com)
    • 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)
        Constructor.
        Parameters:
        httpServerProcessor - the HTTP server processor.
    • 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.