public abstract class BaseRule extends Object implements CanonicalizationRule, Serializable, HasKeyedProperties
CanonicalizationRule.canonicalize(String)
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.pat
- url
else concatenization of group 1
and group 2.Copyright © 2003–2019 Internet Archive. All rights reserved.