public class RobotsDirectives extends Object implements Serializable
Constructor and Description |
---|
RobotsDirectives() |
Modifier and Type | Method and Description |
---|---|
void |
addAllow(String path) |
void |
addDisallow(String path) |
boolean |
allows(String path) |
float |
getCrawlDelay() |
protected int |
longestPrefixLength(ConcurrentSkipListSet<String> prefixSet,
String str) |
void |
setCrawlDelay(float i) |
public boolean allows(String path)
protected int longestPrefixLength(ConcurrentSkipListSet<String> prefixSet, String str)
prefixSet
- str
- prefixSet
that prefixes str
, or zero
if no entry prefixes str
public void addDisallow(String path)
public void addAllow(String path)
public void setCrawlDelay(float i)
public float getCrawlDelay()
Copyright © 2005–2015 IIPC. All rights reserved.