An up-to-date list of suffixes can be obtained from publicsuffix.org
PublicSuffixList
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PublicSuffixMatcher(final DomainType domainType, final Collection<String> rules, final Collection<String> exceptions)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static DomainType | |
| public String | Returns: domain rootReturns registrable part of the domain for the given domain name or |
| public String | Returns: domain rootexpected domain type or expectedType)null if any.Returns registrable part of the domain for the given domain name or |
| private static boolean | |
| public boolean | |
| public boolean | Returns: true if the given domain matches any of the public suffixes.expected domain type or expectedType)null if any.Tests whether the given domain matches any of entry from the public suffix list. |
| exceptions | back to summary |
|---|---|
| private final Map<String, DomainType> exceptions | |
| rules | back to summary |
|---|---|
| private final Map<String, DomainType> rules | |
| PublicSuffixMatcher | back to summary |
|---|---|
| public PublicSuffixMatcher(final Collection<String> rules, final Collection<String> exceptions) | |
| PublicSuffixMatcher | back to summary |
|---|---|
public PublicSuffixMatcher(final DomainType domainType, final Collection<String> rules, final Collection<String> exceptions)
| |
| PublicSuffixMatcher | back to summary |
|---|---|
public PublicSuffixMatcher(final Collection<PublicSuffixList> lists)
| |
| findEntry | back to summary |
|---|---|
| private static DomainType findEntry(final Map<String, DomainType> map, final String rule) | |
| getDomainRoot | back to summary |
|---|---|
| public String getDomainRoot(final String domain) Returns registrable part of the domain for the given domain name or
| |
| getDomainRoot | back to summary |
|---|---|
| public String getDomainRoot(final String domain, final DomainType expectedType) Returns registrable part of the domain for the given domain name or
| |
| match | back to summary |
|---|---|
| private static boolean match(final DomainType domainType, final DomainType expectedType) | |
| matches | back to summary |
|---|---|
| public boolean matches(final String domain) Tests whether the given domain matches any of entry from the public suffix list. | |
| matches | back to summary |
|---|---|
| public boolean matches(final String domain, final DomainType expectedType) Tests whether the given domain matches any of entry from the public suffix list.
| |