Package org.analogweb.netty
Class AnalogwebChannelInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
- org.analogweb.netty.AnalogwebChannelInitializer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public class AnalogwebChannelInitializer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
- Author:
- y2k2mt
-
-
Constructor Summary
Constructors Constructor Description AnalogwebChannelInitializer(io.netty.handler.ssl.SslContext ssl, org.analogweb.Application app, org.analogweb.ApplicationContext contextResolver, org.analogweb.ApplicationProperties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.netty.channel.ChannelHandler
createServerHandler()
protected org.analogweb.Application
getApplication()
protected org.analogweb.ApplicationProperties
getApplicationProperties()
protected List<org.analogweb.util.ClassCollector>
getClassCollectors()
protected ClassLoader
getClassLoader()
protected io.netty.util.concurrent.EventExecutorGroup
getHandlerSpecificExecutorGroup()
protected io.netty.handler.ssl.SslContext
getSslContext()
void
initChannel(io.netty.channel.socket.SocketChannel ch)
protected void
initChannelWithClearText(io.netty.channel.socket.SocketChannel ch)
protected void
initChannelWithSsl(io.netty.handler.ssl.SslContext sslContext, io.netty.channel.socket.SocketChannel ch)
protected io.netty.handler.ssl.SslContext
resolveSslContext()
-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Method Detail
-
resolveSslContext
protected io.netty.handler.ssl.SslContext resolveSslContext()
-
initChannel
public void initChannel(io.netty.channel.socket.SocketChannel ch) throws Exception
- Specified by:
initChannel
in classio.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
- Throws:
Exception
-
initChannelWithSsl
protected void initChannelWithSsl(io.netty.handler.ssl.SslContext sslContext, io.netty.channel.socket.SocketChannel ch) throws Exception
- Throws:
Exception
-
initChannelWithClearText
protected void initChannelWithClearText(io.netty.channel.socket.SocketChannel ch) throws Exception
- Throws:
Exception
-
createServerHandler
protected io.netty.channel.ChannelHandler createServerHandler()
-
getSslContext
protected io.netty.handler.ssl.SslContext getSslContext()
-
getApplication
protected org.analogweb.Application getApplication()
-
getApplicationProperties
protected org.analogweb.ApplicationProperties getApplicationProperties()
-
getClassLoader
protected ClassLoader getClassLoader()
-
getHandlerSpecificExecutorGroup
protected io.netty.util.concurrent.EventExecutorGroup getHandlerSpecificExecutorGroup()
-
getClassCollectors
protected List<org.analogweb.util.ClassCollector> getClassCollectors()
-
-