public static class EffectiveTldFinder.EffectiveTLD extends Object
com
, co.uk
, etc.)xn--p1ai
and рф
)Constructor and Description |
---|
EffectiveTLD(String line,
boolean isPrivateDomain)
Parse one non-empty, non-comment line in the public suffix list and
hold the public suffix and its properties in the created object.
|
Modifier and Type | Method and Description |
---|---|
String |
getDomain() |
Set<String> |
getNameVariants()
Generate name variants caused by Internationalized Domain Names:
every IDN part of a eTLD can be replaced by its punycoded ASCII
variant.
|
boolean |
isException() |
boolean |
isWild() |
String |
toString() |
public EffectiveTLD(String line, boolean isPrivateDomain) throws IllegalArgumentException
line
- non-empty, non-comment line in the public suffix listisPrivateDomain
- whether line is in the section of "PRIVATE
DOMAINS" of the public suffix listIllegalArgumentException
- if the input line contains non-ASCII Unicode characters
prohibited in IDNs, cf. IDN.toASCII(String)
public Set<String> getNameVariants()
public String getDomain()
public boolean isWild()
public boolean isException()
Copyright © 2009–2021 Crawler-Commons. All rights reserved.