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
configureHttpPipeline(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 org.infinispan.server.core.ProtocolServer<?>
getProtocolServer(String protocol)
io.netty.channel.ChannelHandler
getRestHandler()
protected int
maxContentLength()
-
-
-
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, String protocol)
-
configurePipeline
public void configurePipeline(io.netty.channel.ChannelPipeline pipeline, String protocol)
-
getProtocolServer
protected org.infinispan.server.core.ProtocolServer<?> getProtocolServer(String protocol)
-
configureHttpPipeline
protected void configureHttpPipeline(io.netty.channel.ChannelPipeline pipeline)
-
maxContentLength
protected int maxContentLength()
-
getRestHandler
public io.netty.channel.ChannelHandler getRestHandler()
-
getAlpnConfiguration
public io.netty.handler.ssl.ApplicationProtocolConfig getAlpnConfiguration()
-
-