Package org.infinispan.rest
Class RestChannelInitializer
- java.lang.Object
-
- org.infinispan.server.core.transport.NettyChannelInitializer<RestServerConfiguration>
-
- org.infinispan.rest.RestChannelInitializer
-
- All Implemented Interfaces:
NettyInitializer
public class RestChannelInitializer extends NettyChannelInitializer<RestServerConfiguration>
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()
io.netty.channel.ChannelHandler
getRestHandler()
void
initializeChannel(io.netty.channel.Channel ch)
Initialize netty channel
-
-
-
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 Exception
Description copied from interface:NettyInitializer
Initialize netty channel- Specified by:
initializeChannel
in interfaceNettyInitializer
- Overrides:
initializeChannel
in classNettyChannelInitializer<RestServerConfiguration>
- Throws:
Exception
-
getAlpnConfiguration
protected io.netty.handler.ssl.ApplicationProtocolConfig getAlpnConfiguration()
- Overrides:
getAlpnConfiguration
in classNettyChannelInitializer<RestServerConfiguration>
-
getRestHandler
public io.netty.channel.ChannelHandler getRestHandler()
-
-