public class RegexRule extends BaseRule
Constructor and Description |
---|
RegexRule() |
Modifier and Type | Method and Description |
---|---|
String |
canonicalize(String url)
Apply this canonicalization rule.
|
String |
getFormat() |
Pattern |
getRegex() |
void |
setFormat(String format) |
void |
setRegex(Pattern regex) |
doStripRegexMatch, getEnabled, getKeyedProperties, setEnabled
protected static Logger logger
public Pattern getRegex()
public void setRegex(Pattern regex)
public String getFormat()
public void setFormat(String format)
public String canonicalize(String url)
CanonicalizationRule
url
- Url string we apply this rule to.url
.Copyright © 2003-2014 Internet Archive. All Rights Reserved.