java.lang.Object
- All Implemented Interfaces:
ChannelHandler,ChannelInboundHandler
ForwardingHandler bridges Netty response and request related APIs to
BareRequest and BareResponse.
For each tcp connection, a single ForwardingHandler is created.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidchannelRead0(ChannelHandlerContext ctx, Object msg) voidvoidexceptionCaught(ChannelHandlerContext ctx, Throwable cause) Overrides behavior when exception is thrown in pipeline.Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Method Details
-
channelReadComplete
- Specified by:
channelReadCompletein interfaceChannelInboundHandler- Overrides:
channelReadCompletein classChannelInboundHandlerAdapter
-
channelRead0
- Specified by:
channelRead0in classSimpleChannelInboundHandler<Object>
-
channelInactive
- Specified by:
channelInactivein interfaceChannelInboundHandler- Overrides:
channelInactivein classChannelInboundHandlerAdapter- Throws:
Exception
-
exceptionCaught
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.
-