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) |
io.netty.channel.ChannelPromise |
put(int streamId,
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, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic io.netty.channel.ChannelPromise put(int streamId,
io.netty.channel.ChannelPromise promise)
ChannelPromisestreamId - The stream for which a response is expectedpromise - 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.ChannelPromise)Copyright © 2008–2015 The Netty Project. All rights reserved.