| org.archive.crawler.url.CanonicalizationRule
All known Subclasses: org.archive.crawler.url.canonicalize.BaseRule,
CanonicalizationRule | public interface CanonicalizationRule (Code) | | A rule to apply canonicalizing a url.
author: stack version: $Date: 2004-10-08 17:39:42 +0000 (Fri, 08 Oct 2004) $, $Revision: 2627 $ |
Method Summary | |
public String | canonicalize(String url, Object context) Apply this canonicalization rule.
Parameters: url - Url string we apply this rule to. Parameters: context - An object that will provide context for the settingssystem. | public String | getName() | public boolean | isEnabled(Object context) Parameters: context - An object that will provide context for the settingssystem. |
canonicalize | public String canonicalize(String url, Object context)(Code) | | Apply this canonicalization rule.
Parameters: url - Url string we apply this rule to. Parameters: context - An object that will provide context for the settingssystem. The UURI of the URL we're canonicalizing is an example ofan object that provides context. Result of applying this rule to passed url . |
isEnabled | public boolean isEnabled(Object context)(Code) | | Parameters: context - An object that will provide context for the settingssystem. The UURI of the URL we're canonicalizing is an example ofan object that provides context. True if this rule is enabled and to be run. |
|
|