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