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