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()
RobotRules
getCrawlDelay
in interface RobotRules
public long getExpireTime()
RobotRules
getExpireTime
in interface RobotRules
public boolean isAllowed(URL url)
RobotRules
false
if the robots.txt
file
prohibits us from accessing the given url
, or
true
otherwise.isAllowed
in interface RobotRules
Copyright © 2007, 2017, Oracle and/or its affiliates. All rights reserved.