public class Http20RequestHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
Modifier and Type | Field and Description |
---|---|
protected Authenticator |
authenticator |
protected CacheOperations |
cacheOperations |
protected ContextChecker |
contextChecker |
protected static Log |
logger |
protected RestAccessLoggingHandler |
restAccessLoggingHandler |
protected StaticContent |
staticContent |
Constructor and Description |
---|
Http20RequestHandler(RestServerConfiguration configuration,
EmbeddedCacheManager embeddedCacheManager)
Creates new
Http20RequestHandler . |
Http20RequestHandler(RestServerConfiguration configuration,
EmbeddedCacheManager embeddedCacheManager,
Authenticator authenticator)
Creates new
Http20RequestHandler . |
Modifier and Type | Method and Description |
---|---|
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable e) |
protected void |
sendResponse(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request,
io.netty.handler.codec.http.FullHttpResponse response) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
protected static final Log logger
protected final CacheOperations cacheOperations
protected final StaticContent staticContent
protected final Authenticator authenticator
protected final ContextChecker contextChecker
protected final RestAccessLoggingHandler restAccessLoggingHandler
public Http20RequestHandler(RestServerConfiguration configuration, EmbeddedCacheManager embeddedCacheManager)
Http20RequestHandler
.configuration
- Rest Server configurationembeddedCacheManager
- Embedded Cache Manager for storing data.public Http20RequestHandler(RestServerConfiguration configuration, EmbeddedCacheManager embeddedCacheManager, Authenticator authenticator)
Http20RequestHandler
.configuration
- Rest Server configurationembeddedCacheManager
- Embedded Cache Manager for storing data.authenticator
- Authenticator.public void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest request) throws Exception
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
Exception
protected void sendResponse(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest request, io.netty.handler.codec.http.FullHttpResponse response)
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable e) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.