Package crawlercommons.robots
Class SimpleRobotRules.RobotRule
- java.lang.Object
-
- crawlercommons.robots.SimpleRobotRules.RobotRule
-
- All Implemented Interfaces:
Serializable
,Comparable<SimpleRobotRules.RobotRule>
- Enclosing class:
- SimpleRobotRules
public static class SimpleRobotRules.RobotRule extends Object implements Comparable<SimpleRobotRules.RobotRule>, Serializable
Single rule that maps from a path prefix to an allow flag.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SimpleRobotRules.RobotRule o)
boolean
equals(Object obj)
String
getPrefix()
int
hashCode()
boolean
isAllow()
-
-
-
Constructor Detail
-
RobotRule
public RobotRule(String prefix, boolean allow)
A allow/disallow rule: a path prefix or pattern and whether it is allowed or disallowed.
-
-
Method Detail
-
isAllow
public boolean isAllow()
-
getPrefix
public String getPrefix()
-
compareTo
public int compareTo(SimpleRobotRules.RobotRule o)
- Specified by:
compareTo
in interfaceComparable<SimpleRobotRules.RobotRule>
-
-