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 restServer, NettyTransport transport)
Creates newRestChannelInitializer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.netty.handler.ssl.ApplicationProtocolConfig
getAlpnConfiguration()
ALPNHandler
getAlpnHandler()
void
initializeChannel(io.netty.channel.Channel ch)
Initialize netty channelprotected int
maxContentLength()
-
-
-
Constructor Detail
-
RestChannelInitializer
public RestChannelInitializer(RestServer restServer, NettyTransport transport)
Creates newRestChannelInitializer
.- Parameters:
restServer
- Rest Server this initializer belongs to.transport
- Netty transport.
-
-
Method Detail
-
initializeChannel
public void initializeChannel(io.netty.channel.Channel ch) throws java.lang.Exception
Description copied from interface:NettyInitializer
Initialize netty channel- Specified by:
initializeChannel
in interfaceNettyInitializer
- Overrides:
initializeChannel
in classNettyChannelInitializer
- Throws:
java.lang.Exception
-
maxContentLength
protected int maxContentLength()
-
getAlpnConfiguration
protected io.netty.handler.ssl.ApplicationProtocolConfig getAlpnConfiguration()
- Overrides:
getAlpnConfiguration
in classNettyChannelInitializer
-
getAlpnHandler
public ALPNHandler getAlpnHandler()
-
-