org.apache.nutch.net.urlnormalizer.querystring

## Class QuerystringURLNormalizer

- java.lang.Object
- - org.apache.nutch.net.urlnormalizer.querystring.QuerystringURLNormalizer

- All Implemented Interfaces:
    Configurable, URLNormalizer

      public class QuerystringURLNormalizer
      extends java.lang.Object
      implements URLNormalizer

  URL normalizer plugin for normalizing query strings but sorting query string parameters. Not sorting query strings can lead to large amounts of duplicate URL's such as ?a=x&b=y vs b=y&a=x.

- - ### Field Summary

    - ### Fields inherited from interface org.apache.nutch.net.URLNormalizer

      `X_POINT_ID`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `QuerystringURLNormalizer()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Configuration` | `getConf()`
    `java.lang.String` | `normalize(java.lang.String urlString, java.lang.String scope)`
    `void` | `setConf(Configuration conf)`

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

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

- - ### Constructor Detail

    - #### QuerystringURLNormalizer

          public QuerystringURLNormalizer()

  - ### Method Detail

    - #### getConf

          public Configuration getConf()

      Specified by:
        `getConf` in interface `Configurable`

    - #### setConf

          public void setConf(Configuration conf)

      Specified by:
        `setConf` in interface `Configurable`

    - #### normalize

          public java.lang.String normalize(java.lang.String urlString,
                                            java.lang.String scope)
                                     throws java.net.MalformedURLException

      Specified by:
        `normalize` in interface `URLNormalizer`
      Throws:
        `java.net.MalformedURLException`

Copyright © 2019 The Apache Software Foundation