Package | Description |
---|---|
org.apache.http.conn.util |
Connection utility classes.
|
Modifier and Type | Field and Description |
---|---|
private DomainType |
PublicSuffixList.type |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,DomainType> |
PublicSuffixMatcher.exceptions |
private java.util.Map<java.lang.String,DomainType> |
PublicSuffixMatcher.rules |
Modifier and Type | Method and Description |
---|---|
DomainType |
PublicSuffixList.getType() |
static DomainType |
DomainType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DomainType[] |
DomainType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
PublicSuffixMatcher.getDomainRoot(java.lang.String domain,
DomainType expectedType)
Returns registrable part of the domain for the given domain name or
null
if given domain represents a public suffix. |
private static boolean |
PublicSuffixMatcher.hasEntry(java.util.Map<java.lang.String,DomainType> map,
java.lang.String rule,
DomainType expectedType) |
private boolean |
PublicSuffixMatcher.hasException(java.lang.String exception,
DomainType expectedType) |
private boolean |
PublicSuffixMatcher.hasRule(java.lang.String rule,
DomainType expectedType) |
boolean |
PublicSuffixMatcher.matches(java.lang.String domain,
DomainType expectedType)
Tests whether the given domain matches any of entry from the public suffix list.
|
Modifier and Type | Method and Description |
---|---|
private static boolean |
PublicSuffixMatcher.hasEntry(java.util.Map<java.lang.String,DomainType> map,
java.lang.String rule,
DomainType expectedType) |
Constructor and Description |
---|
PublicSuffixList(DomainType type,
java.util.List<java.lang.String> rules,
java.util.List<java.lang.String> exceptions) |
PublicSuffixMatcher(DomainType domainType,
java.util.Collection<java.lang.String> rules,
java.util.Collection<java.lang.String> exceptions) |