org.apache.nutch.net

## Class URLFilters

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

-     public class URLFilters
      extends Object

  Creates and caches `URLFilter` implementing plugins.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `URLFILTER_ORDER`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `URLFilters(Configuration conf)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `filter(String urlString)` Run all defined filters.
    `URLFilter[]` | `getFilters()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### URLFILTER_ORDER

          public static final String URLFILTER_ORDER

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### URLFilters

          public URLFilters(Configuration conf)

  - ### Method Detail

    - #### getFilters

          public URLFilter[] getFilters()

    - #### filter

          public String filter(String urlString)
                        throws URLFilterException

      Run all defined filters. Assume logical AND.
      Throws:
        `URLFilterException`

Copyright © 2021 The Apache Software Foundation