-
public interface RobotRulesThis class holds the rules which were parsed from a robots.txt file, and can test paths against those rules.
-
-
Method Summary
Modifier and Type Method Description abstract BooleanisAllowed(URL url)Returns falseif therobots.txtfile prohibits us from accessing the givenurl, ortrueotherwise.abstract LonggetExpireTime()Get expire time abstract LonggetCrawlDelay()Get Crawl-Delay, in milliseconds. -
-
Method Detail
-
isAllowed
abstract Boolean isAllowed(URL url)
Returns
falseif therobots.txtfile prohibits us from accessing the givenurl, ortrueotherwise.
-
getExpireTime
abstract Long getExpireTime()
Get expire time
-
getCrawlDelay
abstract Long getCrawlDelay()
Get Crawl-Delay, in milliseconds. This returns -1 if not set.
-
-
-
-