Class NettyHttpServerInitializer

java.lang.Object
io.netty5.channel.ChannelInitializer<io.netty5.channel.Channel>
eu.cloudnetservice.driver.network.netty.http.NettyHttpServerInitializer
All Implemented Interfaces:
io.netty5.channel.ChannelHandler

@Internal final class NettyHttpServerInitializer extends io.netty5.channel.ChannelInitializer<io.netty5.channel.Channel>
The default channel initializer used to initialize http server connections.
Since:
4.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final HostAndPort
     
    private final NettyHttpServer
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new netty http server initializer instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    initChannel(@NonNull io.netty5.channel.Channel ch)

    Methods inherited from class io.netty5.channel.ChannelInitializer

    channelExceptionCaught, handlerAdded, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.netty5.channel.ChannelHandler

    bind, channelActive, channelInactive, channelInboundEvent, channelRead, channelReadComplete, channelRegistered, channelShutdown, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, flush, handlerRemoved, pendingOutboundBytes, read, register, sendOutboundEvent, shutdown, write
  • Field Details

  • Constructor Details

    • NettyHttpServerInitializer

      public NettyHttpServerInitializer(@NonNull @NonNull NettyHttpServer nettyHttpServer, @NonNull @NonNull HostAndPort hostAndPort)
      Constructs a new netty http server initializer instance.
      Parameters:
      nettyHttpServer - the http server the initializer belongs to.
      hostAndPort - the host and port of the listener which was bound.
      Throws:
      NullPointerException - if either the http server or host and port is null.
  • Method Details

    • initChannel

      protected void initChannel(@NonNull @NonNull io.netty5.channel.Channel ch)
      Specified by:
      initChannel in class io.netty5.channel.ChannelInitializer<io.netty5.channel.Channel>