Examples of HostUrlWildcardRule


Examples of org.snova.framework.proxy.spac.filter.gfwlist.HostUrlWildcardRule

      {
        continue;
      }
      if (line.startsWith("@@||"))
      {
        HostUrlWildcardRule rule = new HostUrlWildcardRule();
        rule.init(line.substring(4));
        w.add(rule);
      }
      else if (line.startsWith("||"))
      {
        HostUrlWildcardRule rule = new HostUrlWildcardRule();
        rule.init(line.substring(2));
        b.add(rule);
      }
      else if (line.startsWith("|http"))
      {
        UrlWildcardRule rule = new UrlWildcardRule();
        rule.init(line.substring(1));
        b.add(rule);
      }
      else if (line.startsWith("/") && line.endsWith("/"))
      {
        UrlRegexRule rule = new UrlRegexRule();
        rule.init(line.substring(1, line.length() - 1));
        b.add(rule);
      }
      else
      {
        HostUrlWildcardRule rule = new HostUrlWildcardRule();
        rule.onlyHttp = true;
        rule.init(line);
        b.add(rule);
      }
    }
    instance.blackList = b;
    instance.whiteList = w;
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.