Package ai.platon.pulsar.common.domain
Class DomainSuffixes
-
- All Implemented Interfaces:
public class DomainSuffixesA Top-Level Domain is the suffix tied to a website, such as com, net, or org.
A top-level domain (TLD) is the suffix or extension tied to a website. Around half of all websites use the top-level domain com, commonly called “dot” com. There is no algorithmic way of knowing whether a suffix is a public domain suffix, or not.
-
-
Field Summary
Fields Modifier and Type Field Description public static StringDOMAIN_SUFFIXES_FILEpublic static DomainSuffixesinstance
-
Method Summary
Modifier and Type Method Description static DomainSuffixesgetInstance()Singleton instance, lazy instantination booleanisDomainSuffix(String extension)return whether the extension is a registered domain entry DomainSuffixget(String extension)Return the DomainSuffix object for the extension, if extension is a top level domain returned object will be an instance of TopLevelDomain -
-
Method Detail
-
getInstance
static DomainSuffixes getInstance()
Singleton instance, lazy instantination
-
isDomainSuffix
boolean isDomainSuffix(String extension)
return whether the extension is a registered domain entry
-
get
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
-
-
-
-