public abstract class AsyncHttpClientHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
protected ChannelManager |
channelManager |
protected AsyncHttpClientConfig |
config |
protected org.slf4j.Logger |
logger |
protected 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) |
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, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected final org.slf4j.Logger logger
protected final AsyncHttpClientConfig config
protected final ChannelManager channelManager
protected final NettyRequestSender requestSender
public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable e)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterpublic abstract void handleRead(io.netty.channel.Channel channel,
NettyResponseFuture<?> future,
Object message)
throws Exception
Exceptionpublic abstract void handleException(NettyResponseFuture<?> future, Throwable error)
public abstract void handleChannelInactive(NettyResponseFuture<?> future)
Copyright © 2024. All rights reserved.