Java 类org.jboss.netty.channel.ChannelDownstreamHandler 实例源码

项目:netty-isdn-transport    文件:ChannelAllCoverageWrapper.java   
public ChannelAllCoverageWrapper(ChannelHandler handler) {
    super();
    this.handler = handler;
    this.downstream = (handler instanceof ChannelDownstreamHandler);
    this.upstream = (handler instanceof ChannelUpstreamHandler);
}
项目:netty-isdn-transport    文件:ChannelAllCoverageWrapper.java   
public void handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception {
    if (downstream) {
        ((ChannelDownstreamHandler) handler).handleDownstream(ctx, e);
    }
}