public final class PublicSuffixMatcher extends Object
An up-to-date list of suffixes can be obtained from publicsuffix.org
PublicSuffixList
Constructor | Description |
---|---|
PublicSuffixMatcher(Collection<String> rules,
Collection<String> exceptions) |
Modifier and Type | Method | Description |
---|---|---|
String |
getDomainRoot(String domain) |
Returns registrable part of the domain for the given domain name of
null
if given domain represents a public suffix. |
boolean |
matches(String domain) |
public PublicSuffixMatcher(Collection<String> rules, Collection<String> exceptions)