public class RestChannelInitializer extends NettyChannelInitializer
With ALPN support, this class acts only as a bridge between Server Core and ALPN Handler which bootstraps pipeline handlers
decoder, encoder, server, transport| Constructor and Description |
|---|
RestChannelInitializer(RestServer server,
NettyTransport transport)
Creates new
RestChannelInitializer. |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.handler.ssl.ApplicationProtocolConfig |
getAlpnConfiguration() |
Http11To2UpgradeHandler |
getHttp11To2UpgradeHandler() |
void |
initializeChannel(io.netty.channel.Channel ch)
Initialize netty channel
|
public RestChannelInitializer(RestServer server, NettyTransport transport)
RestChannelInitializer.server - Rest Server this initializer belongs to.transport - Netty transport.public void initializeChannel(io.netty.channel.Channel ch)
throws Exception
NettyInitializerinitializeChannel in interface NettyInitializerinitializeChannel in class NettyChannelInitializerExceptionprotected io.netty.handler.ssl.ApplicationProtocolConfig getAlpnConfiguration()
getAlpnConfiguration in class NettyChannelInitializerpublic Http11To2UpgradeHandler getHttp11To2UpgradeHandler()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.