Package org.infinispan.rest
Class ALPNHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
-
- org.infinispan.rest.ALPNHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Sharable public class ALPNHandler extends io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
Handler responsible for TLS/ALPN negotiation.- Author:
- Sebastian Ćaskawiec
-
-
Field Summary
Fields Modifier and Type Field Description protected RestServer
restServer
-
Constructor Summary
Constructors Constructor Description ALPNHandler(RestServer restServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureHttp1(io.netty.channel.ChannelPipeline pipeline)
Configure pipeline for HTTP/1.1 after negotiated by ALPNprotected void
configureHttp2(io.netty.channel.ChannelPipeline pipeline)
Configure pipeline for HTTP/2 after negotiated via ALPNvoid
configurePipeline(io.netty.channel.ChannelHandlerContext ctx, java.lang.String protocol)
void
configurePipeline(io.netty.channel.ChannelPipeline pipeline, java.lang.String protocol)
io.netty.handler.ssl.ApplicationProtocolConfig
getAlpnConfiguration()
io.netty.channel.ChannelHandler
getHttp1Handler()
protected int
maxContentLength()
-
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
-
ALPNHandler
public ALPNHandler(RestServer restServer)
-
-
Method Detail
-
configurePipeline
public void configurePipeline(io.netty.channel.ChannelHandlerContext ctx, java.lang.String protocol)
- Specified by:
configurePipeline
in 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)
Configure pipeline for HTTP/2 after negotiated via ALPN
-
configureHttp1
protected void configureHttp1(io.netty.channel.ChannelPipeline pipeline)
Configure pipeline for HTTP/1.1 after negotiated by ALPN
-
maxContentLength
protected int maxContentLength()
-
getHttp1Handler
public io.netty.channel.ChannelHandler getHttp1Handler()
-
getAlpnConfiguration
public io.netty.handler.ssl.ApplicationProtocolConfig getAlpnConfiguration()
-
-