@ThreadSafe public final class PublicSuffixMatcher extends Object
An up-to-date list of suffixes can be obtained from publicsuffix.org
PublicSuffixList| Constructor and Description |
|---|
PublicSuffixMatcher(Collection<String> rules,
Collection<String> exceptions) |
| Modifier and Type | Method and 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)
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.