org.apache.nutch.util.domain

## Class DomainSuffix

- java.lang.Object
- - org.apache.nutch.util.domain.DomainSuffix

- Direct Known Subclasses:
    TopLevelDomain

      public class DomainSuffix
      extends java.lang.Object

  This class represents the last part of the host name, which is operated by authoritives, not individuals. This information is needed to find the domain name of a host. The domain name of a host is defined to be the last part before the domain suffix, w/o subdomain names. As an example the domain name of
  `http://lucene.apache.org/`
  is `apache.org`
  This class holds three fields, domain field represents the suffix (such as "co.uk") boost is a float for boosting score of url's with this suffix status field represents domain's status
  Author:
    Enis Soztutar <enis.soz.nutch@gmail.com>
  See Also:
    `for info please see conf/domain-suffixes.xml`

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `DomainSuffix.Status` Enumeration of the status of the tld.

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static float` | `DEFAULT_BOOST`
    `static DomainSuffix.Status` | `DEFAULT_STATUS`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DomainSuffix(java.lang.String domain)`
    `DomainSuffix(java.lang.String domain, DomainSuffix.Status status, float boost)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `float` | `getBoost()`
    `java.lang.String` | `getDomain()`
    `DomainSuffix.Status` | `getStatus()`
    `java.lang.String` | `toString()`

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

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

- - ### Field Detail

    - #### DEFAULT_BOOST

          public static final float DEFAULT_BOOST

      See Also:
        Constant Field Values

    - #### DEFAULT_STATUS

          public static final DomainSuffix.Status DEFAULT_STATUS

  - ### Constructor Detail

    - #### DomainSuffix

          public DomainSuffix(java.lang.String domain,
                              DomainSuffix.Status status,
                              float boost)

    - #### DomainSuffix

          public DomainSuffix(java.lang.String domain)

  - ### Method Detail

    - #### getDomain

          public java.lang.String getDomain()

    - #### getStatus

          public DomainSuffix.Status getStatus()

    - #### getBoost

          public float getBoost()

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

Copyright © 2019 The Apache Software Foundation