Class ProtocolURLNormalizer
java.lang.Object
org.apache.nutch.net.urlnormalizer.protocol.ProtocolURLNormalizer
- All Implemented Interfaces:
Configurable,URLNormalizer
URL normalizer to normalize the protocol for all URLs of a given host or
domain, e.g. normalize
http://nutch.apache.org/path/ to
https://www.apache.org/path/ if it's known that the host
nutch.apache.org supports https and http-URLs either cause
duplicate content or are redirected to https.
See org.apache.nutch.net.urlnormalizer.protocol for details and
configuration.-
Field Summary
Fields inherited from interface org.apache.nutch.net.URLNormalizer
X_POINT_ID -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ProtocolURLNormalizer
public ProtocolURLNormalizer()
-
-
Method Details
-
getConf
- Specified by:
getConfin interfaceConfigurable
-
setConf
- Specified by:
setConfin interfaceConfigurable
-
normalize
- Specified by:
normalizein interfaceURLNormalizer- Throws:
MalformedURLException
-