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 -
Constructor Summary
ConstructorsConstructorDescriptionNettyHttpServerInitializer(@NonNull NettyHttpServer nettyHttpServer, @NonNull HostAndPort hostAndPort) Constructs a new netty http server initializer instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitChannel(@NonNull io.netty5.channel.Channel ch) Methods inherited from class io.netty5.channel.ChannelInitializer
channelExceptionCaught, handlerAdded, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
nettyHttpServer
-
hostAndPort
-
-
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
- Specified by:
initChannelin classio.netty5.channel.ChannelInitializer<io.netty5.channel.Channel>
-