org.supermind.crawl.http
Class RobotRulesParser.RobotRuleSet

java.lang.Object
  extended by org.supermind.crawl.http.RobotRulesParser.RobotRuleSet
Enclosing class:
RobotRulesParser

public static class RobotRulesParser.RobotRuleSet
extends java.lang.Object

This class holds the rules which were parsed from a robots.txt file, and can test paths against those rules.


Field Summary
(package private)  org.supermind.crawl.http.RobotRulesParser.RobotRuleSet.RobotsEntry[] entries
           
(package private)  long expireTime
           
(package private)  java.util.ArrayList tmpEntries
           
 
Method Summary
 long getExpireTime()
          Get expire time
 boolean isAllowed(java.lang.String path)
          Returns false if the robots.txt file prohibits us from accessing the given path, or true otherwise.
 void setExpireTime(long expireTime)
          Change when the ruleset goes stale.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

entries

org.supermind.crawl.http.RobotRulesParser.RobotRuleSet.RobotsEntry[] entries

expireTime

long expireTime

tmpEntries

java.util.ArrayList tmpEntries
Method Detail

getExpireTime

public long getExpireTime()
Get expire time


isAllowed

public boolean isAllowed(java.lang.String path)
Returns false if the robots.txt file prohibits us from accessing the given path, or true otherwise.


setExpireTime

public void setExpireTime(long expireTime)
Change when the ruleset goes stale.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object