public class TargetHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
| Constructor and Description |
|---|
TargetHandler() |
| 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 |
closeChannel(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
Throwable |
getCause() |
ConnectionManager |
getConnectionManager() |
io.netty.channel.ChannelHandlerContext |
getContext()
Gets the
ChannelHandlerContext of the TargetHandler. |
Http2TargetHandler |
getHttp2TargetHandler() |
HttpResponseFuture |
getHttpResponseFuture() |
HttpCarbonMessage |
getInboundResponseMsg() |
KeepAliveConfig |
getKeepAliveConfig() |
HttpCarbonMessage |
getOutboundRequestMsg() |
TargetChannel |
getTargetChannel() |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
resetInboundMsg() |
void |
setConnectionManager(ConnectionManager connectionManager) |
void |
setHttpResponseFuture(HttpResponseFuture httpResponseFuture) |
void |
setKeepAliveConfig(KeepAliveConfig keepAliveConfig) |
void |
setOutboundRequestMsg(HttpCarbonMessage outboundRequestMsg) |
void |
setTargetChannel(TargetChannel targetChannel) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerRemoved, isSharablepublic void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.channel.ChannelHandlerAdapterpublic 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 channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive 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 cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void closeChannel(io.netty.channel.ChannelHandlerContext ctx)
public void setHttpResponseFuture(HttpResponseFuture httpResponseFuture)
public void setConnectionManager(ConnectionManager connectionManager)
public void setOutboundRequestMsg(HttpCarbonMessage outboundRequestMsg)
public void setTargetChannel(TargetChannel targetChannel)
public void setKeepAliveConfig(KeepAliveConfig keepAliveConfig)
public HttpResponseFuture getHttpResponseFuture()
public HttpCarbonMessage getInboundResponseMsg()
public Http2TargetHandler getHttp2TargetHandler()
public void resetInboundMsg()
public TargetChannel getTargetChannel()
public KeepAliveConfig getKeepAliveConfig()
public HttpCarbonMessage getOutboundRequestMsg()
public ConnectionManager getConnectionManager()
public io.netty.channel.ChannelHandlerContext getContext()
ChannelHandlerContext of the TargetHandler.ChannelHandlerContext of this handler.public Throwable getCause()
Copyright © 2023 WSO2. All rights reserved.