Package cloud.piranha.http.netty
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])
-
-
Constructor Summary
Constructors Constructor Description NettyHttpServerInitializer(HttpServerProcessor httpServerProcessor, boolean ssl)
Constructor.
-
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
-
-
-
-
Constructor Detail
-
NettyHttpServerInitializer
public NettyHttpServerInitializer(HttpServerProcessor httpServerProcessor, boolean ssl)
Constructor.- Parameters:
httpServerProcessor
- the HTTP server processor.ssl
- the ssl flag
-
-