public abstract class AsyncHttpClientHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
| 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(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable e) |
protected void |
finishUpdate(NettyResponseFuture<?> future,
io.netty.channel.Channel channel,
boolean close) |
abstract void |
handleChannelInactive(NettyResponseFuture<?> future) |
abstract void |
handleException(NettyResponseFuture<?> future,
java.lang.Throwable error) |
abstract void |
handleRead(io.netty.channel.Channel channel,
NettyResponseFuture<?> future,
java.lang.Object message) |
channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected 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(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg)
throws java.lang.Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable e)
throws java.lang.Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionprotected void finishUpdate(NettyResponseFuture<?> future, io.netty.channel.Channel channel, boolean close) throws java.io.IOException
java.io.IOExceptionpublic abstract void handleRead(io.netty.channel.Channel channel,
NettyResponseFuture<?> future,
java.lang.Object message)
throws java.lang.Exception
java.lang.Exceptionpublic abstract void handleException(NettyResponseFuture<?> future, java.lang.Throwable error)
public abstract void handleChannelInactive(NettyResponseFuture<?> future)
Copyright © 2018. All Rights Reserved.