Package org.infinispan.rest
Class RestChannelInitializer
java.lang.Object
org.infinispan.server.core.transport.NettyChannelInitializer<RestServerConfiguration>
org.infinispan.rest.RestChannelInitializer
- All Implemented Interfaces:
NettyInitializer
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
ConstructorDescriptionRestChannelInitializer
(RestServer restServer, NettyTransport transport) Creates newRestChannelInitializer
. -
Method Summary
Modifier and TypeMethodDescriptionprotected io.netty.handler.ssl.ApplicationProtocolConfig
io.netty.channel.ChannelHandler
void
initializeChannel
(io.netty.channel.Channel ch) Initialize netty channel
-
Constructor Details
-
RestChannelInitializer
Creates newRestChannelInitializer
.- Parameters:
restServer
- Rest Server this initializer belongs to.transport
- Netty transport.
-
-
Method Details
-
initializeChannel
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()
-