[#837] CombinedChannelHandler must pass sendFile(...) to the wrapped ChannelOutboundHandler

This commit is contained in:
Norman Maurer 2012-12-20 12:25:13 +01:00
parent 94dc09c33d
commit 43d13064d1

View File

@ -19,8 +19,12 @@ import io.netty.buffer.Buf;
import java.net.SocketAddress;
public class CombinedChannelHandler
extends ChannelHandlerAdapter implements ChannelInboundHandler, ChannelOutboundHandler {
/**
* Combines a {@link ChannelInboundHandler} and a {@link ChannelOutboundHandler} into one {@link ChannelHandler}.
*
*/
public class CombinedChannelHandler extends ChannelStateHandlerAdapter implements ChannelInboundHandler,
ChannelOutboundHandler {
private ChannelOutboundHandler out;
private ChannelInboundHandler in;
@ -197,4 +201,9 @@ public class CombinedChannelHandler
ChannelHandlerContext ctx, ChannelFuture future) throws Exception {
out.flush(ctx, future);
}
@Override
public void sendFile(ChannelHandlerContext ctx, FileRegion region, ChannelFuture future) throws Exception {
out.sendFile(ctx, region, future);
}
}