Package org.apache.camel.component.netty
Class DefaultServerInitializerFactory
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
-
- org.apache.camel.component.netty.ServerInitializerFactory
-
- org.apache.camel.component.netty.DefaultServerInitializerFactory
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class DefaultServerInitializerFactory extends ServerInitializerFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultServerInitializerFactory(NettyConsumer consumer)DefaultServerInitializerFactory(NettyServerBootstrapConfiguration configuration)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerInitializerFactorycreatePipelineFactory(NettyConsumer consumer)Creates a newServerInitializerFactoryusing the givenNettyConsumerprotected voidinitChannel(io.netty.channel.Channel ch)-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Constructor Detail
-
DefaultServerInitializerFactory
@Deprecated public DefaultServerInitializerFactory(NettyServerBootstrapConfiguration configuration)
Deprecated.
-
DefaultServerInitializerFactory
public DefaultServerInitializerFactory(NettyConsumer consumer)
-
-
Method Detail
-
initChannel
protected void initChannel(io.netty.channel.Channel ch) throws Exception- Specified by:
initChannelin classio.netty.channel.ChannelInitializer<io.netty.channel.Channel>- Throws:
Exception
-
createPipelineFactory
public ServerInitializerFactory createPipelineFactory(NettyConsumer consumer)
Description copied from class:ServerInitializerFactoryCreates a newServerInitializerFactoryusing the givenNettyConsumer- Specified by:
createPipelineFactoryin classServerInitializerFactory- Parameters:
consumer- the associated consumer- Returns:
- the
ServerInitializerFactoryassociated to the given consumer.
-
-