public abstract class AsyncHttpClientHandler extends ChannelInboundHandlerAdapter
ChannelHandler.Sharable| Modifier and Type | Field and Description |
|---|---|
protected ChannelManager |
channelManager |
protected AsyncHttpClientConfig |
config |
protected boolean |
hasIOExceptionFilters |
protected Interceptors |
interceptors |
protected org.slf4j.Logger |
logger |
protected NettyRequestSender |
requestSender |
| Constructor and Description |
|---|
AsyncHttpClientHandler(AsyncHttpClientConfig config,
ChannelManager channelManager,
NettyRequestSender requestSender) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(ChannelHandlerContext ctx) |
void |
channelInactive(ChannelHandlerContext ctx) |
void |
channelRead(ChannelHandlerContext ctx,
Object msg) |
void |
channelReadComplete(ChannelHandlerContext ctx) |
void |
exceptionCaught(ChannelHandlerContext ctx,
Throwable e) |
abstract void |
handleChannelInactive(NettyResponseFuture<?> future) |
abstract void |
handleException(NettyResponseFuture<?> future,
Throwable error) |
abstract void |
handleRead(Channel channel,
NettyResponseFuture<?> future,
Object message) |
channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedprotected final org.slf4j.Logger logger
protected final AsyncHttpClientConfig config
protected final ChannelManager channelManager
protected final NettyRequestSender requestSender
protected final Interceptors interceptors
protected final boolean hasIOExceptionFilters
public AsyncHttpClientHandler(AsyncHttpClientConfig config, ChannelManager channelManager, NettyRequestSender requestSender)
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
channelRead in interface ChannelInboundHandlerchannelRead in class ChannelInboundHandlerAdapterExceptionpublic void channelInactive(ChannelHandlerContext ctx) throws Exception
channelInactive in interface ChannelInboundHandlerchannelInactive in class ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable e) throws Exception
exceptionCaught in interface ChannelHandlerexceptionCaught in interface ChannelInboundHandlerexceptionCaught in class ChannelInboundHandlerAdapterExceptionpublic void channelActive(ChannelHandlerContext ctx) throws Exception
channelActive in interface ChannelInboundHandlerchannelActive in class ChannelInboundHandlerAdapterExceptionpublic void channelReadComplete(ChannelHandlerContext ctx) throws Exception
channelReadComplete in interface ChannelInboundHandlerchannelReadComplete in class ChannelInboundHandlerAdapterExceptionpublic abstract void handleRead(Channel channel, NettyResponseFuture<?> future, Object message) throws Exception
Exceptionpublic abstract void handleException(NettyResponseFuture<?> future, Throwable error)
public abstract void handleChannelInactive(NettyResponseFuture<?> future)
Copyright © 2016. All Rights Reserved.