@ChannelHandler.Sharable
public class Http11To2UpgradeHandler
extends io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_HEADER_SIZE |
protected static int |
MAX_INITIAL_LINE_SIZE |
protected RestServer |
restServer |
Constructor and Description |
---|
Http11To2UpgradeHandler(RestServer restServer) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureHttp1(io.netty.channel.ChannelPipeline pipeline) |
protected void |
configureHttp2(io.netty.channel.ChannelPipeline pipeline) |
void |
configurePipeline(io.netty.channel.ChannelHandlerContext ctx,
String protocol) |
void |
configurePipeline(io.netty.channel.ChannelPipeline pipeline,
String protocol) |
io.netty.handler.ssl.ApplicationProtocolConfig |
getAlpnConfiguration() |
protected io.netty.handler.codec.http2.HttpToHttp2ConnectionHandler |
getHttp11To2ConnectionHandler()
Creates a handler for HTTP/1.1 -> HTTP/2 upgrade
|
io.netty.channel.ChannelHandler |
getHttp1Handler()
Gets HTTP/1.1 handler.
|
io.netty.channel.ChannelHandler |
getHttp2Handler()
Gets HTTP/2 handler.
|
protected int |
maxContentLength() |
exceptionCaught, handshakeFailure, userEventTriggered
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
protected static final int MAX_INITIAL_LINE_SIZE
protected static final int MAX_HEADER_SIZE
protected final RestServer restServer
public Http11To2UpgradeHandler(RestServer restServer)
public 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)
protected void configureHttp2(io.netty.channel.ChannelPipeline pipeline)
protected void configureHttp1(io.netty.channel.ChannelPipeline pipeline)
protected int maxContentLength()
protected io.netty.handler.codec.http2.HttpToHttp2ConnectionHandler getHttp11To2ConnectionHandler()
HttpToHttp2ConnectionHandler
.public io.netty.channel.ChannelHandler getHttp1Handler()
public io.netty.channel.ChannelHandler getHttp2Handler()
public io.netty.handler.ssl.ApplicationProtocolConfig getAlpnConfiguration()
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.