org.apache.nutch.util.domain
Class DomainSuffixes

java.lang.Object
  extended by org.apache.nutch.util.domain.DomainSuffixes

public class DomainSuffixes
extends Object

Storage class for DomainSuffix objects Note: this class is singleton

Author:
Enis Soztutar <enis.soz.nutch@gmail.com>

Method Summary
 DomainSuffix get(String extension)
          Return the DomainSuffix object for the extension, if extension is a top level domain returned object will be an instance of TopLevelDomain
static DomainSuffixes getInstance()
          Singleton instance, lazy instantination
 boolean isDomainSuffix(String extension)
          return whether the extension is a registered domain entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DomainSuffixes getInstance()
Singleton instance, lazy instantination

Returns:

isDomainSuffix

public boolean isDomainSuffix(String extension)
return whether the extension is a registered domain entry


get

public DomainSuffix get(String extension)
Return the DomainSuffix object for the extension, if extension is a top level domain returned object will be an instance of TopLevelDomain

Parameters:
extension - of the domain


Copyright © 2012 The Apache Software Foundation