public ChannelAllCoverageWrapper(ChannelHandler handler) { super(); this.handler = handler; this.downstream = (handler instanceof ChannelDownstreamHandler); this.upstream = (handler instanceof ChannelUpstreamHandler); }
public void handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception { if (downstream) { ((ChannelDownstreamHandler) handler).handleDownstream(ctx, e); } }