Package org.apache.nutch.net
Interface URLExemptionFilter
- All Superinterfaces:
Configurable,Pluggable
- All Known Implementing Classes:
ExemptionUrlFilter
Interface used to allow exemptions to external domain resources by overriding
db.ignore.external.links.
This is useful when the crawl is focused to a domain but resources like images are hosted on CDN.-
Field Summary
Fields -
Method Summary
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
X_POINT_ID
The name of the extension point.
-
-
Method Details
-
filter
Checks if toUrl is exempted when the ignore external is enabled- Parameters:
fromUrl- : the source url which generated the outlinktoUrl- : the destination url which needs to be checked for exemption- Returns:
- true when toUrl is exempted from dbIgnore
-