Class URLFilters

java.lang.Object
org.apache.nutch.net.URLFilters

public class URLFilters extends Object
Creates and caches plugins implementing URLFilter. Filters URLs using the active filters defined by the properties "plugin.includes", "plugin.excludes" and "urlfilter.order".
  • Field Details

  • Constructor Details

  • Method Details

    • getFilters

      public URLFilter[] getFilters()
    • filter

      public String filter(String urlString) throws URLFilterException
      Run all defined filters. Assume logical AND. To control performance, the ULFilter classes can be ordered by the property "urlfilter.order".
      Parameters:
      urlString - to execute filters on
      Returns:
      filtered result
      Throws:
      URLFilterException - if there is an issue executing any URLFilter implementations.