- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<Object>
-
- io.helidon.webserver.ForwardingHandler
-
- All Implemented Interfaces:
ChannelHandler,ChannelInboundHandler
public class ForwardingHandler extends SimpleChannelInboundHandler<Object>
ForwardingHandler bridges Netty response and request related APIs toBareRequestandBareResponse.For each tcp connection, a single
ForwardingHandleris created.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelInactive(ChannelHandlerContext ctx)protected voidchannelRead0(ChannelHandlerContext ctx, Object msg)voidchannelReadComplete(ChannelHandlerContext ctx)voidexceptionCaught(ChannelHandlerContext ctx, Throwable cause)Overrides behavior when exception is thrown in pipeline.-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
-
-
-
Method Detail
-
channelReadComplete
public void channelReadComplete(ChannelHandlerContext ctx)
- Specified by:
channelReadCompletein interfaceChannelInboundHandler- Overrides:
channelReadCompletein classChannelInboundHandlerAdapter
-
channelRead0
protected void channelRead0(ChannelHandlerContext ctx, Object msg)
- Specified by:
channelRead0in classSimpleChannelInboundHandler<Object>
-
channelInactive
public void channelInactive(ChannelHandlerContext ctx) throws Exception
- Specified by:
channelInactivein interfaceChannelInboundHandler- Overrides:
channelInactivein classChannelInboundHandlerAdapter- Throws:
Exception
-
exceptionCaught
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
Overrides behavior when exception is thrown in pipeline.- Specified by:
exceptionCaughtin interfaceChannelHandler- Specified by:
exceptionCaughtin interfaceChannelInboundHandler- Overrides:
exceptionCaughtin classChannelInboundHandlerAdapter- Parameters:
ctx- channel context.cause- the throwable.
-
-