Package org.infinispan.rest
Class RestChannelInitializer
- java.lang.Object
 - 
- org.infinispan.server.core.transport.NettyChannelInitializer
 - 
- org.infinispan.rest.RestChannelInitializer
 
 
 
- 
- All Implemented Interfaces:
 NettyInitializer
public class RestChannelInitializer extends NettyChannelInitializer
Creates Netty Channels for this server.With ALPN support, this class acts only as a bridge between Server Core and ALPN Handler which bootstraps pipeline handlers
- Author:
 - Sebastian Ćaskawiec
 
 
- 
- 
Field Summary
- 
Fields inherited from class org.infinispan.server.core.transport.NettyChannelInitializer
decoder, encoder, server, transport 
 - 
 
- 
Constructor Summary
Constructors Constructor Description RestChannelInitializer(RestServer server, NettyTransport transport)Creates newRestChannelInitializer. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.netty.handler.ssl.ApplicationProtocolConfiggetAlpnConfiguration()Http11To2UpgradeHandlergetHttp11To2UpgradeHandler()voidinitializeChannel(io.netty.channel.Channel ch)Initialize netty channel 
 - 
 
- 
- 
Constructor Detail
- 
RestChannelInitializer
public RestChannelInitializer(RestServer server, NettyTransport transport)
Creates newRestChannelInitializer.- Parameters:
 server- Rest Server this initializer belongs to.transport- Netty transport.
 
 - 
 
- 
Method Detail
- 
initializeChannel
public void initializeChannel(io.netty.channel.Channel ch) throws ExceptionDescription copied from interface:NettyInitializerInitialize netty channel- Specified by:
 initializeChannelin interfaceNettyInitializer- Overrides:
 initializeChannelin classNettyChannelInitializer- Throws:
 Exception
 
- 
getAlpnConfiguration
protected io.netty.handler.ssl.ApplicationProtocolConfig getAlpnConfiguration()
- Overrides:
 getAlpnConfigurationin classNettyChannelInitializer
 
- 
getHttp11To2UpgradeHandler
public Http11To2UpgradeHandler getHttp11To2UpgradeHandler()
 
 - 
 
 -