public class Http2ClientChannelHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpResponse>
FullHttpResponse translated from HTTP/2 frames| 构造器和说明 |
|---|
Http2ClientChannelHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpResponse msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
Map.Entry<io.netty.channel.ChannelFuture,AbstractHttpClientHandler> |
put(int streamId,
io.netty.channel.ChannelFuture writeFuture,
AbstractHttpClientHandler promise)
Create an association between an anticipated response stream id and a
ChannelPromise |
Map.Entry<io.netty.channel.ChannelFuture,AbstractHttpClientHandler> |
removePromise(int streamId) |
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic Map.Entry<io.netty.channel.ChannelFuture,AbstractHttpClientHandler> put(int streamId, io.netty.channel.ChannelFuture writeFuture, AbstractHttpClientHandler 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 eventsstreamIdprotected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpResponse msg)
throws Exception
channelRead0 在类中 io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpResponse>Exceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive 在接口中 io.netty.channel.ChannelInboundHandlerchannelInactive 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic Map.Entry<io.netty.channel.ChannelFuture,AbstractHttpClientHandler> removePromise(int streamId)
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2008–2018 The Ant Financial. All rights reserved.