public class Http20RequestHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
| Modifier and Type | Field and Description |
|---|---|
protected RestServerConfiguration |
configuration |
protected static Log |
logger |
protected RestServer |
restServer |
| Constructor and Description |
|---|
Http20RequestHandler(RestServer restServer)
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,
java.lang.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, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected static final Log logger
protected final RestServer restServer
protected final RestServerConfiguration configuration
public Http20RequestHandler(RestServer restServer)
Http20RequestHandler.restServer - Rest Server.public void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request)
throws java.lang.Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>java.lang.Exceptionprotected 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,
java.lang.Throwable e)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter