Package | Description |
---|---|
com.google.common.net |
This package contains utility methods and classes for working with net addresses (numeric IP and
domain names).
|
com.google.thirdparty.publicsuffix |
Modifier and Type | Method and Description |
---|---|
private int |
InternetDomainName.findSuffixOfType(Optional<PublicSuffixType> desiredType)
Returns the index of the leftmost part of the suffix, or -1 if not found.
|
private static boolean |
InternetDomainName.matchesType(Optional<PublicSuffixType> desiredType,
Optional<PublicSuffixType> actualType)
If a
desiredType is specified, returns true only if the actualType is
identical. |
private static boolean |
InternetDomainName.matchesType(Optional<PublicSuffixType> desiredType,
Optional<PublicSuffixType> actualType)
If a
desiredType is specified, returns true only if the actualType is
identical. |
private static boolean |
InternetDomainName.matchesWildcardSuffixType(Optional<PublicSuffixType> desiredType,
java.lang.String domain)
Does the domain name match one of the "wildcard" patterns (e.g.
|
Modifier and Type | Field and Description |
---|---|
static ImmutableMap<java.lang.String,PublicSuffixType> |
PublicSuffixPatterns.EXACT
If a hostname is contained as a key in this map, it is a public suffix.
|
static ImmutableMap<java.lang.String,PublicSuffixType> |
PublicSuffixPatterns.EXCLUDED
The elements in this map would pass the UNDER test, but are known not to be public suffixes and
are thus excluded from consideration.
|
static ImmutableMap<java.lang.String,PublicSuffixType> |
PublicSuffixPatterns.UNDER
If a hostname is not a key in the EXCLUDE map, and if removing its leftmost component results
in a name which is a key in this map, it is a public suffix.
|
Modifier and Type | Method and Description |
---|---|
(package private) static PublicSuffixType |
PublicSuffixType.fromCode(char code)
Returns a PublicSuffixType of the right type according to the given code
|
static PublicSuffixType |
PublicSuffixType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PublicSuffixType[] |
PublicSuffixType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
(package private) static ImmutableMap<java.lang.String,PublicSuffixType> |
TrieParser.parseTrie(java.lang.CharSequence encoded)
Parses a serialized trie representation of a map of reversed public suffixes into an immutable
map of public suffixes.
|
Modifier and Type | Method and Description |
---|---|
private static int |
TrieParser.doParseTrieToBuilder(java.util.Deque<java.lang.CharSequence> stack,
java.lang.CharSequence encoded,
int start,
ImmutableMap.Builder<java.lang.String,PublicSuffixType> builder)
Parses a trie node and returns the number of characters consumed.
|