Package org.infinispan.rest
Class Http11To2UpgradeHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
-
- org.infinispan.rest.Http11To2UpgradeHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable public class Http11To2UpgradeHandler extends io.netty.handler.ssl.ApplicationProtocolNegotiationHandlerHandler responsible for TLS/ALPN negotiation as well as HTTP/1.1 Upgrade header handling- Author:
- Sebastian Ćaskawiec
-
-
Field Summary
Fields Modifier and Type Field Description protected RestServerrestServer
-
Constructor Summary
Constructors Constructor Description Http11To2UpgradeHandler(RestServer restServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureHttp1(io.netty.channel.ChannelPipeline pipeline)protected voidconfigureHttp2(io.netty.channel.ChannelPipeline pipeline)voidconfigurePipeline(io.netty.channel.ChannelHandlerContext ctx, java.lang.String protocol)voidconfigurePipeline(io.netty.channel.ChannelPipeline pipeline, java.lang.String protocol)io.netty.handler.ssl.ApplicationProtocolConfiggetAlpnConfiguration()io.netty.channel.ChannelHandlergetHttp1Handler()protected intmaxContentLength()protected io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodecupgradeCodecForHttp11(java.lang.CharSequence protocol)-
Methods inherited from class io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
exceptionCaught, handshakeFailure, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
restServer
protected final RestServer restServer
-
-
Constructor Detail
-
Http11To2UpgradeHandler
public Http11To2UpgradeHandler(RestServer restServer)
-
-
Method Detail
-
configurePipeline
public void configurePipeline(io.netty.channel.ChannelHandlerContext ctx, java.lang.String protocol)- Specified by:
configurePipelinein classio.netty.handler.ssl.ApplicationProtocolNegotiationHandler
-
configurePipeline
public void configurePipeline(io.netty.channel.ChannelPipeline pipeline, java.lang.String protocol)
-
configureHttp2
protected void configureHttp2(io.netty.channel.ChannelPipeline pipeline)
-
configureHttp1
protected void configureHttp1(io.netty.channel.ChannelPipeline pipeline)
-
maxContentLength
protected int maxContentLength()
-
getHttp1Handler
public io.netty.channel.ChannelHandler getHttp1Handler()
-
getAlpnConfiguration
public io.netty.handler.ssl.ApplicationProtocolConfig getAlpnConfiguration()
-
upgradeCodecForHttp11
protected io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodec upgradeCodecForHttp11(java.lang.CharSequence protocol)
-
-