Modifier and Type | Field and Description |
---|---|
static String |
PUBLIC_SUFFIX_LIST_EMBEDDED_PATH |
static String |
PUBLIC_SUFFIX_LIST_EXTERNAL_FILE_PATH |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllTlds(boolean quoted)
GetAllTlds method.
|
Pattern |
getHostnamePattern() |
static TLD |
getInstance()
GetInstance method for the TLD.
|
Pattern |
getValidDomainMatcher() |
protected static void |
readTldsFromPublicSuffixFile(List<String> tldList,
List<String> quotedTldList)
Helper method for reading TLDs from the embedded public suffix file.
|
protected static void |
readTldsFromSettings(List<String> tldList,
List<String> quotedTldList)
Helper method for reading TLDs from settings.
|
static void |
reset()
Reset TLD instance.
|
public static final String PUBLIC_SUFFIX_LIST_EMBEDDED_PATH
public static final String PUBLIC_SUFFIX_LIST_EXTERNAL_FILE_PATH
public static TLD getInstance()
public static void reset()
protected static void readTldsFromSettings(List<String> tldList, List<String> quotedTldList)
tldList
- the list to add all the tlds found in the settingsquotedTldList
- the list to add all the tlds found in the settings - as a patternprotected static void readTldsFromPublicSuffixFile(List<String> tldList, List<String> quotedTldList)
tldList
- the list to add all the tlds found in the public suffix filequotedTldList
- the list to add all the tlds found in the public suffix file - as a patternpublic Pattern getValidDomainMatcher()
public Pattern getHostnamePattern()
public List<String> getAllTlds(boolean quoted)
quoted
- do you want the quoted, or unquoted list.Copyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.