org.apache.nutch.net.urlnormalizer.basic

## Class BasicURLNormalizer

- java.lang.Object
- - org.apache.hadoop.conf.Configured
  - - org.apache.nutch.net.urlnormalizer.basic.BasicURLNormalizer

- All Implemented Interfaces:
    Configurable, URLNormalizer

      public class BasicURLNormalizer
      extends Configured
      implements URLNormalizer

  Converts URLs to a normal form:
  - remove dot segments in path: `/./` or `/../`
  - remove default ports, e.g. 80 for protocol `http://`

- - ### Field Summary

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

      `X_POINT_ID`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BasicURLNormalizer()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(java.lang.String[] args)`
    `java.lang.String` | `normalize(java.lang.String urlString, java.lang.String scope)`

    - ### Methods inherited from class org.apache.hadoop.conf.Configured

      `getConf, setConf`

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

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

    - ### Methods inherited from interface org.apache.hadoop.conf.Configurable

      `getConf, setConf`

- - ### Constructor Detail

    - #### BasicURLNormalizer

          public BasicURLNormalizer()

  - ### Method Detail

    - #### 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`

    - #### main

          public static void main(java.lang.String[] args)
                           throws java.io.IOException

      Throws:
        `java.io.IOException`

Copyright © 2019 The Apache Software Foundation