org.apache.cxf.transport.https.httpclient
Class PublicSuffixMatcher

java.lang.Object
  extended by org.apache.cxf.transport.https.httpclient.PublicSuffixMatcher

public final class PublicSuffixMatcher
extends Object

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 Copied from httpclient.


Constructor Summary
PublicSuffixMatcher(Collection<String> rules, Collection<String> exceptions)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicSuffixMatcher

public PublicSuffixMatcher(Collection<String> rules,
                           Collection<String> exceptions)
Method Detail

getDomainRoot

public String getDomainRoot(String domain)
Returns registrable part of the domain for the given domain name of null if given domain represents a public suffix.

Parameters:
domain -
Returns:
domain root

matches

public boolean matches(String domain)


Apache CXF