public class HttpResponseHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpResponse>
FullHttpResponse translated from HTTP/2 frames| Constructor and Description |
|---|
HttpResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitResponses(long timeout,
TimeUnit unit)
Wait (sequentially) for a time duration for each anticipated response
|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpResponse msg) |
Map.Entry<io.netty.channel.ChannelFuture,io.netty.channel.ChannelPromise> |
put(int streamId,
io.netty.channel.ChannelFuture writeFuture,
io.netty.channel.ChannelPromise promise)
Create an association between an anticipated response stream id and a
ChannelPromise |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic Map.Entry<io.netty.channel.ChannelFuture,io.netty.channel.ChannelPromise> put(int streamId, io.netty.channel.ChannelFuture writeFuture, io.netty.channel.ChannelPromise promise)
ChannelPromisestreamId - The stream for which a response is expectedwriteFuture - A future that represent the request write operationpromise - The promise object that will be used to wait/notify eventsstreamIdawaitResponses(long, java.util.concurrent.TimeUnit)public void awaitResponses(long timeout,
TimeUnit unit)
timeout - Value of time to wait for each responseunit - Units associated with timeoutput(int, io.netty.channel.ChannelFuture, io.netty.channel.ChannelPromise)Copyright © 2008–2025 The Netty Project. All rights reserved.