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
ConstructorDescriptionNettyHttpServerInitializer
(HttpServerProcessor httpServerProcessor, boolean ssl) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
NettyHttpServerInitializer
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 classio.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
- Parameters:
channel
- the channel.
-