Package org.rzo.netty.ahessian.stopable

Source Code of org.rzo.netty.ahessian.stopable.StopHandler

package org.rzo.netty.ahessian.stopable;

import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelStateEvent;
import org.jboss.netty.channel.SimpleChannelUpstreamHandler;

public class StopHandler extends SimpleChannelUpstreamHandler
{

  @Override
  public void channelClosed(final ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception
  {
    ChannelPipeline p = ctx.getPipeline();
    if (p instanceof StopablePipeline)
      ((StopablePipeline)p).stop();
  }


}
TOP

Related Classes of org.rzo.netty.ahessian.stopable.StopHandler

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.