Class TopLevelDomain
-
- All Implemented Interfaces:
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 iscom.Enis Soztutar <enis.soz.pulsar@gmail.com>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumTopLevelDomain.Type
-
Field Summary
Fields Modifier and Type Field Description public TopLevelDomain.Typetypepublic StringcountryNamepublic final static floatDEFAULT_BOOSTpublic final static DomainSuffix.StatusDEFAULT_STATUSpublic Stringdomainpublic DomainSuffix.Statusstatuspublic floatboost
-
Constructor Summary
Constructors Constructor Description TopLevelDomain(String domain, TopLevelDomain.Type type, DomainSuffix.Status status, float boost)TopLevelDomain(String domain, DomainSuffix.Status status, float boost, String countryName)
-
Method Summary
Modifier and Type Method Description TopLevelDomain.TypegetType()StringgetCountryName()Returns the country name if TLD is Country Code TLD -
-
Constructor Detail
-
TopLevelDomain
TopLevelDomain(String domain, TopLevelDomain.Type type, DomainSuffix.Status status, float boost)
-
TopLevelDomain
TopLevelDomain(String domain, DomainSuffix.Status status, float boost, String countryName)
-
-
Method Detail
-
getType
TopLevelDomain.Type getType()
-
getCountryName
String getCountryName()
Returns the country name if TLD is Country Code TLD
- Returns:
country name or null
-
-
-
-