Examples of IpFilterRuleHandler


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

  {
      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

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

  {
      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

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

    // 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

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

      if (enableIpFilter) {

        logger.info("Setting up ipFilter with the following rule definition: " +
          patternRuleConfigDefinition);
        IpFilterRuleHandler ipFilterHandler = new IpFilterRuleHandler();
        ipFilterHandler.addAll(rules);
        logger.info(
          "Adding ipFilter with " + ipFilterHandler.size() + " rules");

        pipeline.addFirst("ipFilter", ipFilterHandler);
      }

      return pipeline;
View Full Code Here

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

      if (enableIpFilter) {

        logger.info("Setting up ipFilter with the following rule definition: " +
          patternRuleConfigDefinition);
        IpFilterRuleHandler ipFilterHandler = new IpFilterRuleHandler();
        ipFilterHandler.addAll(rules);
        logger.info(
          "Adding ipFilter with " + ipFilterHandler.size() + " rules");

        pipeline.addFirst("ipFilter", ipFilterHandler);
      }

      return pipeline;
View Full Code Here
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.