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
decoderSupplier, encoder, mapping, server, transport
-
Constructor Summary
ConstructorsConstructorDescriptionRestChannelInitializer
(RestServer restServer, NettyTransport transport) Creates newRestChannelInitializer
. -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.ChannelHandler
void
initializeChannel
(io.netty.channel.Channel ch) Initialize netty channelMethods inherited from class org.infinispan.server.core.transport.NettyChannelInitializer
initMapping
-
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>
- Parameters:
ch
-- Throws:
Exception
-
getRestHandler
public io.netty.channel.ChannelHandler getRestHandler()
-