Package org.apache.nutch.util.domain
Class DomainSuffixes
- java.lang.Object
-
- org.apache.nutch.util.domain.DomainSuffixes
-
public class DomainSuffixes extends Object
Storage class forDomainSuffix
objects Note: this class is singleton- Author:
- Enis Soztutar <enis.soz.nutch@gmail.com>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainSuffix
get(String extension)
Return theDomainSuffix
object for the extension, if extension is a top level domain returned object will be an instance ofTopLevelDomain
static DomainSuffixes
getInstance()
Singleton instance, lazy instantinationboolean
isDomainSuffix(String extension)
Return whether the extension is a registered domain entry
-
-
-
Method Detail
-
getInstance
public static DomainSuffixes getInstance()
Singleton instance, lazy instantination- Returns:
- returns the domain suffix instance
-
isDomainSuffix
public boolean isDomainSuffix(String extension)
Return whether the extension is a registered domain entry- Parameters:
extension
- a String extension- Returns:
- true if input is a registered domain entry, false otherwise
-
get
public DomainSuffix get(String extension)
Return theDomainSuffix
object for the extension, if extension is a top level domain returned object will be an instance ofTopLevelDomain
- Parameters:
extension
- of the domain- Returns:
DomainSuffix
-
-