public class Http2RequestHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
FullHttpRequest
,
which has been converted by a InboundHttp2ToHttpAdapter
before it
arrived here. For further details, check Http2OrHttpHandler
where the
pipeline is setup.Constructor and Description |
---|
Http2RequestHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
protected void |
sendResponse(io.netty.channel.ChannelHandlerContext ctx,
String streamId,
int latency,
io.netty.handler.codec.http.FullHttpResponse response,
io.netty.handler.codec.http.FullHttpRequest request) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
protected 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, String streamId, int latency, io.netty.handler.codec.http.FullHttpResponse response, io.netty.handler.codec.http.FullHttpRequest request)
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) 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 © 2008–2017 The Netty Project. All rights reserved.