@ChannelHandler.Sharable
public class HttpResponseHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>
| Constructor and Description |
|---|
HttpResponseHandler(NettyHttpClient.BaseCallback callback,
java.util.concurrent.CountDownLatch latch) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpObject msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
ResponseWrapper |
getResponse() |
void |
resetLatch(java.util.concurrent.CountDownLatch latch) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic HttpResponseHandler(NettyHttpClient.BaseCallback callback, java.util.concurrent.CountDownLatch latch)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpObject msg)
throws java.lang.Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>java.lang.Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterpublic void resetLatch(java.util.concurrent.CountDownLatch latch)
public ResponseWrapper getResponse()
Copyright © 2019. All Rights Reserved.