Package net.i2p.apache.http.conn.util
Class PublicSuffixMatcher
java.lang.Object
net.i2p.apache.http.conn.util.PublicSuffixMatcher
Utility class that can test if DNS names match the content of the Public Suffix List.
An up-to-date list of suffixes can be obtained from publicsuffix.org
- Since:
- 4.4
- See Also:
-
Constructor Summary
ConstructorDescriptionPublicSuffixMatcher
(Collection<String> rules, Collection<String> exceptions) -
Method Summary
Modifier and TypeMethodDescriptiongetDomainRoot
(String domain) Returns registrable part of the domain for the given domain name ofnull
if given domain represents a public suffix.boolean
-
Constructor Details
-
PublicSuffixMatcher
-
-
Method Details
-
getDomainRoot
Returns registrable part of the domain for the given domain name ofnull
if given domain represents a public suffix.- Parameters:
domain
-- Returns:
- domain root
-
matches
-