|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.connectivity.framework.crawler.web.http.RobotRulesParser.RobotRuleSet
public static class RobotRulesParser.RobotRuleSet
This class holds the rules which were parsed from a robots.txt file, and can test paths against those rules.
| Constructor Summary | |
|---|---|
RobotRulesParser.RobotRuleSet()
|
|
| Method Summary | |
|---|---|
long |
getCrawlDelay()
Get Crawl-Delay, in milliseconds. |
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 |
setCrawlDelay(long crawlDelay)
Set Crawl-Delay, in milliseconds. |
void |
setExpireTime(long expireTime)
Change when the rule set goes stale. |
java.lang.String |
toString()
Returns readable representation of robot rules. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RobotRulesParser.RobotRuleSet()
| Method Detail |
|---|
public void setExpireTime(long expireTime)
expireTime - time when the rule set goes stalepublic long getExpireTime()
public long getCrawlDelay()
public void setCrawlDelay(long crawlDelay)
crawlDelay - longpublic boolean isAllowed(java.lang.String path)
false if the robots.txt file prohibits us from accessing the given
path, or true otherwise.
path - String
public java.lang.String toString()
toString in class java.lang.Object
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||