@ChannelHandler.Sharable
public class HttpResponseHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>
| 构造器和说明 |
|---|
HttpResponseHandler(NettyHttpClient.BaseCallback callback,
CountDownLatch latch) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpObject msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
ResponseWrapper |
getResponse() |
void |
resetLatch(CountDownLatch latch) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredpublic HttpResponseHandler(NettyHttpClient.BaseCallback callback, CountDownLatch latch)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpObject msg)
throws Exception
channelRead0 在类中 io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterpublic void resetLatch(CountDownLatch latch)
public ResponseWrapper getResponse()
Copyright © 2017. All Rights Reserved.