public abstract class BaseRule extends Object implements CanonicalizationRule, Serializable, HasKeyedProperties
CanonicalizationRule#canonicalize(String, Object)
method.Modifier and Type | Field and Description |
---|---|
protected KeyedProperties |
kp |
Constructor and Description |
---|
BaseRule()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
doStripRegexMatch(String url,
String pat)
Run a regex that strips elements of a string.
|
boolean |
getEnabled() |
KeyedProperties |
getKeyedProperties() |
void |
setEnabled(boolean enabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canonicalize
protected KeyedProperties kp
public KeyedProperties getKeyedProperties()
getKeyedProperties
in interface HasKeyedProperties
public boolean getEnabled()
getEnabled
in interface CanonicalizationRule
public void setEnabled(boolean enabled)
protected String doStripRegexMatch(String url, String pat)
url
- Url to search in.matcher
- Matcher whose form yields a group 1 and group 2 if a
match (non-null.url
else concatenization of group 1
and group 2.Copyright © 2003-2014 Internet Archive. All Rights Reserved.