@ChannelHandler.Sharable
public class Http11To2UpgradeHandler
extends io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
Constructor and Description |
---|
Http11To2UpgradeHandler(RestServer restServer) |
Modifier and Type | Method and Description |
---|---|
protected void |
configurePipeline(io.netty.channel.ChannelHandlerContext ctx,
String protocol) |
void |
configurePipeline(io.netty.channel.ChannelPipeline pipeline,
String protocol) |
Http11RequestHandler |
getHttp1Handler()
Gets HTTP/1.1 handler.
|
Http20RequestHandler |
getHttp2Handler()
Gets HTTP/2 handler.
|
exceptionCaught, handshakeFailure, userEventTriggered
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public Http11To2UpgradeHandler(RestServer restServer)
protected void configurePipeline(io.netty.channel.ChannelHandlerContext ctx, String protocol) throws Exception
configurePipeline
in class io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
Exception
public void configurePipeline(io.netty.channel.ChannelPipeline pipeline, String protocol)
public Http11RequestHandler getHttp1Handler()
public Http20RequestHandler getHttp2Handler()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.