Class HostURLNormalizer
java.lang.Object
org.apache.nutch.net.urlnormalizer.host.HostURLNormalizer
- All Implemented Interfaces:
Configurable,URLNormalizer
URL normalizer for mapping hosts to their desired form. It takes a simple
text file as source in the format:
example.org www.example.org
mapping all URL's of example.org the the www sub-domain. It also allows for
wildcards to be used to map all sub-domains to another host:
*.example.org www.example.org
-
Field Summary
Fields inherited from interface org.apache.nutch.net.URLNormalizer
X_POINT_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConf()protected StringreplaceHost(String urlString, String host, String target) voidsetConf(Configuration conf)
-
Constructor Details
-
HostURLNormalizer
public HostURLNormalizer()
-
-
Method Details
-
getConf
- Specified by:
getConfin interfaceConfigurable
-
setConf
- Specified by:
setConfin interfaceConfigurable
-
normalize
- Specified by:
normalizein interfaceURLNormalizer- Throws:
MalformedURLException
-
replaceHost
-