Package org.apache.nutch.net
Class URLExemptionFilters
- java.lang.Object
-
- org.apache.nutch.net.URLExemptionFilters
-
public class URLExemptionFilters extends Object
Creates and cachesURLExemptionFilter
implementing plugins.
-
-
Constructor Summary
Constructors Constructor Description URLExemptionFilters(Configuration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isExempted(String fromUrl, String toUrl)
Run all defined filters.
-
-
-
Constructor Detail
-
URLExemptionFilters
public URLExemptionFilters(Configuration conf)
-
-
Method Detail
-
isExempted
public boolean isExempted(String fromUrl, String toUrl)
Run all defined filters. Assume logical AND. An URL is exempted when all the filters accept it to pass through- Parameters:
fromUrl
- the source url which generated the outlinktoUrl
- the destination url which needs to be checked for exemption- Returns:
- true is exempted, false otherwise
-
-