Class DomainSuffixes

  • All Implemented Interfaces:

    
    public class DomainSuffixes
    
                        

    A 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.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static DomainSuffixes getInstance() Singleton instance, lazy instantination
      boolean isDomainSuffix(String extension) return whether the extension is a registered domain entry
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait