public class AutomatonURLFilter extends RegexURLFilterBase
| Modifier and Type | Field and Description |
|---|---|
static String |
URLFILTER_AUTOMATON_FILE |
static String |
URLFILTER_AUTOMATON_RULES |
hasHostDomainRulesX_POINT_ID| Constructor and Description |
|---|
AutomatonURLFilter() |
AutomatonURLFilter(String filename) |
| Modifier and Type | Method and Description |
|---|---|
protected RegexRule |
createRule(boolean sign,
String regex)
Creates a new
RegexRule. |
protected RegexRule |
createRule(boolean sign,
String regex,
String hostOrDomain)
Creates a new
RegexRule. |
protected Reader |
getRulesReader(Configuration conf)
Rules specified as a config property will override rules specified as a
config file.
|
static void |
main(String[] args) |
filter, getConf, main, setConfpublic static final String URLFILTER_AUTOMATON_FILE
public static final String URLFILTER_AUTOMATON_RULES
public AutomatonURLFilter()
public AutomatonURLFilter(String filename) throws IOException, PatternSyntaxException
IOExceptionPatternSyntaxExceptionprotected Reader getRulesReader(Configuration conf) throws IOException
getRulesReader in class RegexURLFilterBaseconf - is the current configuration.IOExceptionprotected RegexRule createRule(boolean sign, String regex)
RegexURLFilterBaseRegexRule.createRule in class RegexURLFilterBasesign - of the regular expression. A true value means that
any URL matching this rule must be included, whereas a
false value means that any URL matching this rule
must be excluded.regex - is the regular expression associated to this rule.protected RegexRule createRule(boolean sign, String regex, String hostOrDomain)
RegexURLFilterBaseRegexRule.createRule in class RegexURLFilterBasesign - of the regular expression.
A true value means that any URL matching this rule
must be included, whereas a false
value means that any URL matching this rule must be excluded.regex - is the regular expression associated to this rule.hostOrDomain - the host or domain to which this regex belongspublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation