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,
Object msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable e) |
protected void |
finishUpdate(NettyResponseFuture<?> future,
io.netty.channel.Channel channel,
boolean keepAlive,
boolean expectOtherChunks) |
abstract void |
handleChannelInactive(NettyResponseFuture<?> future) |
abstract void |
handleException(NettyResponseFuture<?> future,
Throwable error) |
abstract void |
handleRead(io.netty.channel.Channel channel,
NettyResponseFuture<?> future,
Object message) |
channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
handlerAdded, handlerRemoved, isSharable
protected 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, Object msg) throws Exception
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable e) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelReadComplete
in interface io.netty.channel.ChannelInboundHandler
channelReadComplete
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
protected void finishUpdate(NettyResponseFuture<?> future, io.netty.channel.Channel channel, boolean keepAlive, boolean expectOtherChunks) throws IOException
IOException
public abstract void handleRead(io.netty.channel.Channel channel, NettyResponseFuture<?> future, Object message) throws Exception
Exception
public abstract void handleException(NettyResponseFuture<?> future, Throwable error)
public abstract void handleChannelInactive(NettyResponseFuture<?> future)
Copyright © 2017. All Rights Reserved.