Class NettyHttpServerInitializer

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
cloud.piranha.http.netty.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
  • Constructor Summary

    Constructors
    Constructor
    Description
    NettyHttpServerInitializer(HttpServerProcessor httpServerProcessor, boolean ssl)
    Constructor.
  • Method Summary

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NettyHttpServerInitializer

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

    • 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.