org.apache.nutch.util.domain
Class TopLevelDomain
java.lang.Object
org.apache.nutch.util.domain.DomainSuffix
org.apache.nutch.util.domain.TopLevelDomain
public class TopLevelDomain
- extends DomainSuffix
(From wikipedia) A top-level domain (TLD) is the last part of an
Internet domain name; that is, the letters which follow the final
dot of any domain name. For example, in the domain name
www.website.com
, the top-level domain is com
.
- Author:
- Enis Soztutar <enis.soz.nutch@gmail.com>
- See Also:
http://www.iana.org/
,
http://en.wikipedia.org/wiki/Top-level_domain
TopLevelDomain
public TopLevelDomain(String domain,
TopLevelDomain.Type type,
DomainSuffix.Status status,
float boost)
TopLevelDomain
public TopLevelDomain(String domain,
DomainSuffix.Status status,
float boost,
String countryName)
getType
public TopLevelDomain.Type getType()
getCountryName
public String getCountryName()
- Returns the country name if TLD is Country Code TLD
- Returns:
- country name or null
Copyright © 2012 The Apache Software Foundation