CrawlServer s = getServerCache().getServerFor(curi.getUURI());
String ua = curi.getUserAgent();
if (ua == null) {
ua = metadata.getUserAgent();
}
Robotstxt rep = s.getRobotstxt();
if (rep != null) {
long crawlDelay = (long)(1000 * rep.getDirectivesFor(ua).getCrawlDelay());
crawlDelay =
(crawlDelay > respectThreshold)
? respectThreshold
: crawlDelay;
if (crawlDelay > durationToWait) {