Package org.jboss.netty.handler.ipfilter

Examples of org.jboss.netty.handler.ipfilter.IpFilterRuleList


  {
      ChannelPipeline pipeline = pipeline(); // Note the static import.
      if (_acl != null)
      {
       
        pipeline.addFirst("firewall", new IpFilterRuleHandler(new IpFilterRuleList(_acl)));
      }
        pipeline.addLast("logger",new OutLogger("server"));
        pipeline.addLast("inputStream", new InputStreamDecoder());
         pipeline.addLast("outputStream", new OutputStreamEncoder());
         pipeline.addLast("callDecoder", new PushInputStreamConsumer(new HessianRPCCallDecoder(), _executor));
View Full Code Here


  {
      ChannelPipeline pipeline = pipeline(); // Note the static import.
      if (_acl != null)
      {
       
        pipeline.addFirst("firewall", new IpFilterRuleHandler(new IpFilterRuleList(_acl)));
      }
         pipeline.addLast("inputStream", new InputStreamDecoder());
          pipeline.addLast("outputStream", new OutputStreamEncoder());
          pipeline.addLast("callDecoder", new PushInputStreamConsumer(new HessianRPCCallDecoder(), _executor));
          pipeline.addLast("replyEncoder", new HessianRPCReplyEncoder());
View Full Code Here

    // Configure the server.
    ServerBootstrap bootstrap = new ServerBootstrap(new NioServerSocketChannelFactory(executor, executor));

    bootstrap
        .setPipelineFactory(new AHessianServerPipelineFactory(executor, new IpFilterRuleHandler(new IpFilterRuleList(ipFilter)), mbeanServer, log));

    int serverPort = port;
    // Bind and start to accept incoming connections.
    Channel channel = bootstrap.bind(new InetSocketAddress(serverPort));
    if (serverPort == 0)
View Full Code Here

TOP

Related Classes of org.jboss.netty.handler.ipfilter.IpFilterRuleList

Copyright © 2018 www.massapicom. 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.