Package com.crawljax.condition

Examples of com.crawljax.condition.UrlCondition


    private Condition getConditionFromConfig(com.crawljax.web.model.Condition c) {
      Condition condition = null;
      Identification id = null;
      switch (c.getCondition()) {
        case url:
          condition = new UrlCondition(c.getExpression());
          break;
        case notUrl:
          condition = new NotUrlCondition(c.getExpression());
          break;
        case javascript:
View Full Code Here


    InputSpecification inputSpec = new InputSpecification();
    inputSpec.field("q").setValue("Crawljax");
    crawler.setInputSpecification(inputSpec);

    // Constrain the crawl to Google (no other web sites)
    crawler.addCrawlCondition("Only crawl Google", new UrlCondition("google"));

    // limit the crawling scope
    crawler.setMaximumStates(6);
    crawler.setDepth(2);
View Full Code Here

    crawler.setDepth(MAX_CRAWL_DEPTH);

    crawler.setInputSpecification(getInputSpecification());

    // Make sure we only crawl Google and no external web site
    crawler.addCrawlCondition("Only crawl Google", new UrlCondition("google"));

    return crawler;
  }
View Full Code Here

    crawler.setDepth(MAX_CRAWL_DEPTH);

    crawler.setInputSpecification(getInputSpecification());

    // Make sure we only crawl Google and no external web site
    crawler.addCrawlCondition("Only crawl Google", new UrlCondition("google"));

    return crawler;
  }
View Full Code Here

TOP

Related Classes of com.crawljax.condition.UrlCondition

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.