public class EmptyRobotRules extends Object implements RobotRules
| Modifier and Type | Field and Description |
|---|---|
static RobotRules |
RULES |
| Constructor and Description |
|---|
EmptyRobotRules() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCrawlDelay()
Get Crawl-Delay, in milliseconds.
|
long |
getExpireTime()
Get expire time
|
boolean |
isAllowed(URL url)
Returns
false if the robots.txt file
prohibits us from accessing the given url, or
true otherwise. |
public static final RobotRules RULES
public long getCrawlDelay()
RobotRulesgetCrawlDelay in interface RobotRulespublic long getExpireTime()
RobotRulesgetExpireTime in interface RobotRulespublic boolean isAllowed(URL url)
RobotRulesfalse if the robots.txt file
prohibits us from accessing the given url, or
true otherwise.isAllowed in interface RobotRulesCopyright © 2007, 2014, Oracle and/or its affiliates. All rights reserved.