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 List<String> |
readTldsFromPublicSuffixFile(boolean asPattern)
Helper method for reading TLDs from the embedded public suffix file.
|
protected static List<String> |
readTldsFromSettings(boolean asPattern)
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 List<String> readTldsFromSettings(boolean asPattern)
protected static List<String> readTldsFromPublicSuffixFile(boolean asPattern)
asPattern
- if true, return a list of quoted Strings using Pattern.quotepublic Pattern getValidDomainMatcher()
public Pattern getHostnamePattern()
public List<String> getAllTlds(boolean quoted)
quoted
- do you want the quoted, or unquoted list.Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.