diff --git a/transport/src/main/java/io/netty/channel/CombinedChannelHandler.java b/transport/src/main/java/io/netty/channel/CombinedChannelHandler.java index 13b5728760..298cd55ac8 100644 --- a/transport/src/main/java/io/netty/channel/CombinedChannelHandler.java +++ b/transport/src/main/java/io/netty/channel/CombinedChannelHandler.java @@ -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); + } }