Module implementing the TLD Extractor.
_TLDExtractor |
E5TldExtractor | Class implementing the TLD Extractor. |
E5TldHostParts | Class implementing the host parts helper. |
instance | Global function to get a reference to the TLD extractor and create it, if it hasn't been yet. |
Class implementing the TLD Extractor.
Note: The module function instance() should be used to get a reference to a global object to avoid overhead.
None |
None |
E5TldExtractor | Constructor |
__checkPublicSuffix | Private method to test a host name against a registrable name. |
__defaultDataSearchPaths | Private method to get the default search paths for the TLD data file. |
__domainHelper | Private method to get the domain name without TLD. |
__loadData | Private method to load the TLD data. |
__normalizedHost | Private method to get the normalized host for a host address. |
__parseData | Private method to parse TLD data. |
__registrableDomainHelper | Private method to get the registrable domain (i.e. |
__subdomainHelper | Private method to get the subdomain of a host address (i.e. |
dataSearchPaths | Public method to get the search paths for the TLD data file. |
domain | Public method to get the domain for a host. |
getTldDownloadUrl | Public method to get the TLD data file download URL. |
isDataLoaded | Public method to check, if the TLD data ia already loaded. |
registrableDomain | Public method to get the registrable domain for a host. |
setDataSearchPaths | Public method to set the search paths for the TLD data file. |
splitParts | Public method to split a host address into its parts. |
subdomain | Public method to get the subdomain for a host. |
test | Public method to execute the tests. |
tld | Public method to get the top level domain for a host. |
None |
Constructor
Private method to test a host name against a registrable name.
Private method to get the default search paths for the TLD data file.
Private method to get the domain name without TLD.
Private method to load the TLD data.
Private method to get the normalized host for a host address.
Private method to parse TLD data.
Private method to get the registrable domain (i.e. domain plus TLD).
Private method to get the subdomain of a host address (i.e. domain part without the registrable domain name).
Public method to get the search paths for the TLD data file.
Public method to get the domain for a host.
Public method to get the TLD data file download URL.
Public method to check, if the TLD data ia already loaded.
Public method to get the registrable domain for a host.
Public method to set the search paths for the TLD data file.
Public method to split a host address into its parts.
Public method to get the subdomain for a host.
Public method to execute the tests.
Public method to get the top level domain for a host.
Class implementing the host parts helper.
None |
None |
E5TldHostParts | Constructor |
None |
Constructor
Global function to get a reference to the TLD extractor and create it, if it hasn't been yet.