Top Description Fields Constructors Methods
com.google.thirdparty.publicsuffix

public final Class PublicSuffixPatterns

extends Object
Class Inheritance
Annotations
@GwtCompatible
@Beta
Imports
com.google.common.annotations.Beta, .GwtCompatible, com.google.common.collect.ImmutableMap

Do not use this class directly. For access to public-suffix information, use com.google.common.net.InternetDomainName.

A generated static class containing public members which provide domain name patterns used in determining whether a given domain name is an effective top-level domain (public suffix).

Because this class is used in GWT, the data members are stored in a space-efficient manner. See TrieParser.

Since
16.0

Field Summary

Modifier and TypeField and Description
public static final ImmutableMap<String, PublicSuffixType>
EXACT

If a hostname is contained as a key in this map, it is a public suffix.

public static final ImmutableMap<String, PublicSuffixType>
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.

public static final ImmutableMap<String, PublicSuffixType>
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.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EXACTback to summary
public static final ImmutableMap<String, PublicSuffixType> EXACT

If a hostname is contained as a key in this map, it is a public suffix.

EXCLUDEDback to summary
public static final ImmutableMap<String, PublicSuffixType> 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. Since it refers to elements in UNDER of the same type, the type is actually not important here. The map is simply used for consistency reasons.

UNDERback to summary
public static final ImmutableMap<String, PublicSuffixType> 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.

Constructor Detail

PublicSuffixPatternsback to summary
private PublicSuffixPatterns()