| java.lang.Object net.matuschek.spider.RegExpRule
RegExpRule | public class RegExpRule (Code) | | Simple class that defines a rule based on a regular expression
It consists of a pattern and a action (allow or deny)
author: Daniel Matuschek version: $Id $ |
RegExpRule | public RegExpRule()(Code) | | |
getAllow | public boolean getAllow()(Code) | | Gets the value of allow
true, if this rule allows something, false if it deniessomething |
getPattern | public String getPattern()(Code) | | Gets the regexp pattern
a regular expression that this rule matches |
getProcessAllowed | public boolean getProcessAllowed()(Code) | | Gets the value of processAllowed
true, if this rule allows processing, false if it denies it |
match | public boolean match(String s)(Code) | | Does this rule match the given string ?
Parameters: s - a String true if the regular expression matches the argument,false otherwise |
setAllow | public void setAllow(boolean allow)(Code) | | Sets the value of allow
Parameters: allow - true, if this rule allows something, false if it deniessomething |
setPattern | public void setPattern(String pattern) throws RESyntaxException(Code) | | Sets the regexp pattern
Parameters: pattern - a regular expression that this rule matches |
setProcessAllowed | public void setProcessAllowed(boolean processAllowed)(Code) | | Sets the value of processAllowed
Parameters: processAllowed - true, if this rule allows processing, false if itdenies it |
|
|