Package org.littleshoot.proxy.impl
Class ProxyConnectionPipeHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.littleshoot.proxy.impl.ProxyConnectionPipeHandler
-
- All Implemented Interfaces:
ChannelHandler,ChannelInboundHandler
public class ProxyConnectionPipeHandler extends ChannelInboundHandlerAdapter
AChannelInboundHandlerthat writes all incoming data to the specified proxy connection.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Field Summary
Fields Modifier and Type Field Description private ProxyConnection<?>sink
-
Constructor Summary
Constructors Constructor Description ProxyConnectionPipeHandler(ProxyConnection<?> sink)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelInactive(ChannelHandlerContext ctx)voidchannelRead(ChannelHandlerContext ctx, Object msg)-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, 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
-
-
-
-
Field Detail
-
sink
private final ProxyConnection<?> sink
-
-
Constructor Detail
-
ProxyConnectionPipeHandler
public ProxyConnectionPipeHandler(ProxyConnection<?> sink)
-
-
Method Detail
-
channelRead
public void channelRead(ChannelHandlerContext ctx, Object msg)
- Specified by:
channelReadin interfaceChannelInboundHandler- Overrides:
channelReadin classChannelInboundHandlerAdapter
-
channelInactive
public void channelInactive(ChannelHandlerContext ctx)
- Specified by:
channelInactivein interfaceChannelInboundHandler- Overrides:
channelInactivein classChannelInboundHandlerAdapter
-
-