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, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected 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>Exceptionprotected 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.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2008–2022 The Netty Project. All rights reserved.