| Modifier and Type | Class and Description |
|---|---|
| private static class | DomainName.
Represents a match against a standard rule in the public suffix list. |
| private static interface | DomainName.
Represents a string's match with a rule in the public suffix list. |
| private static class | DomainName.
Represents a non-match with |
| private static class | |
| private static class | |
| private static class | |
| private static class | DomainName.
A Rules object contains a list of rules for a particular TLD. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | cache
For efficiency, the set of rules for each TLD is kept in text files and only loaded if needed. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static DomainName. | |
| public static RegisteredDomain | Returns: the registered domain, or null if not known or not registerablethe domain name domain)Returns the registered domain of the specified domain. |
| cache | back to summary |
|---|---|
| private static final Map<String, DomainName. For efficiency, the set of rules for each TLD is kept in text files and only loaded if needed. | |
| DomainName | back to summary |
|---|---|
| private DomainName() | |
| getMatch | back to summary |
|---|---|
| private static DomainName. | |
| registeredDomain | back to summary |
|---|---|
| public static RegisteredDomain registeredDomain(String domain) Returns the registered domain of the specified domain.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int | |
| private int | |
| private final DomainName. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public RegisteredDomain | |
| public DomainName. |
| domain | back to summary |
|---|---|
| private final String domain | |
| publicSuffix | back to summary |
|---|---|
| private final int publicSuffix | |
| registeredDomain | back to summary |
|---|---|
| private int registeredDomain | |
| rule | back to summary |
|---|---|
| private final DomainName. | |
| CommonMatch | back to summary |
|---|---|
| pack-priv CommonMatch(String domain, DomainName. | |
| registeredDomain | back to summary |
|---|---|
| public RegisteredDomain registeredDomain() Implements sun.
| |
| type | back to summary |
|---|---|
| public DomainName. Implements sun.
| |
| Modifier and Type | Method and Description |
|---|---|
| public RegisteredDomain | |
| public DomainName. |
| registeredDomain | back to summary |
|---|---|
| public RegisteredDomain registeredDomain() | |
| type | back to summary |
|---|---|
| public DomainName. | |
NO_MATCH or a match against
a non-standard rule in the public suffix list. A non-standard rule
is a wildcard rule that includes wildcards in a label other than
the leading label. The public suffix list doesn't currently have
such rules.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final DomainName. | |
| private final LinkedList |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public RegisteredDomain | |
| public DomainName. |
| numLabels | back to summary |
|---|---|
| private final int numLabels | |
| rule | back to summary |
|---|---|
| private final DomainName. | |
| target | back to summary |
|---|---|
| private final LinkedList<String> target | |
| OtherMatch | back to summary |
|---|---|
| pack-priv OtherMatch(DomainName. | |
| getSuffixes | back to summary |
|---|---|
| private String getSuffixes(int n) | |
| registeredDomain | back to summary |
|---|---|
| public RegisteredDomain registeredDomain() Implements sun.
| |
| type | back to summary |
|---|---|
| public DomainName. Implements sun.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| labels | back to summary |
|---|---|
| pack-priv List<String> labels | |
| OtherRule | back to summary |
|---|---|
| pack-priv OtherRule(String domain, RegisteredDomain. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final RegisteredDomain. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | name()
Implements sun. Returns the name of the registered domain. |
| public String | publicSuffix()
Implements sun. Returns the public suffix of the registered domain. |
| public RegisteredDomain. | type()
Implements sun. Returns the type of the registered domain. |
| name | back to summary |
|---|---|
| private final String name | |
| publicSuffix | back to summary |
|---|---|
| private final String publicSuffix | |
| type | back to summary |
|---|---|
| private final RegisteredDomain. | |
| RegisteredDomainImpl | back to summary |
|---|---|
| pack-priv RegisteredDomainImpl(String name, RegisteredDomain. | |
| name | back to summary |
|---|---|
| public String name() Implements sun. Doc from sun. Returns the name of the registered domain.
| |
| publicSuffix | back to summary |
|---|---|
| public String publicSuffix() Implements sun. Doc from sun. Returns the public suffix of the registered domain.
| |
| type | back to summary |
|---|---|
| public RegisteredDomain. Implements sun. Doc from sun. Returns the type of the registered domain.
| |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv RegisteredDomain. | |
| pack-priv String | |
| pack-priv DomainName. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| auth | back to summary |
|---|---|
| pack-priv RegisteredDomain. | |
| domain | back to summary |
|---|---|
| pack-priv String domain | |
| type | back to summary |
|---|---|
| pack-priv DomainName. | |
| Rule | back to summary |
|---|---|
| pack-priv Rule(String domain, DomainName. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final DomainName. | |
| public static final DomainName. | |
| public static final DomainName. | |
| public static final DomainName. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DomainName. | |
| public static DomainName. |
| EXCEPTION | back to summary |
|---|---|
| public static final DomainName. | |
| NORMAL | back to summary |
|---|---|
| public static final DomainName. | |
| OTHER | back to summary |
|---|---|
| public static final DomainName. | |
| WILDCARD | back to summary |
|---|---|
| public static final DomainName. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static DomainName. | |
| values | back to summary |
|---|---|
| public static DomainName. | |
| Modifier and Type | Class and Description |
|---|---|
| private static class | DomainName.
Represents a set of rules with the same number of labels and for a particular TLD. |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final LinkedList |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static DomainName. | |
| private static InputStream | |
| pack-priv static DomainName. | |
| private static DomainName. | |
| private DomainName. | |
| private static String | |
| pack-priv DomainName. |
| hasExceptions | back to summary |
|---|---|
| private final boolean hasExceptions | |
| ruleSets | back to summary |
|---|---|
| private final LinkedList<DomainName. | |
| Rules | back to summary |
|---|---|
| private Rules(InputStream is) throws IOException | |
| createRules | back to summary |
|---|---|
| private static DomainName. | |
| getPubSuffixStream | back to summary |
|---|---|
| private static InputStream getPubSuffixStream() | |
| getRules | back to summary |
|---|---|
| pack-priv static DomainName. | |
| getRules | back to summary |
|---|---|
| private static DomainName. | |
| getRuleSet | back to summary |
|---|---|
| private DomainName. Return the requested RuleSet. If it hasn't been created yet, create it and any RuleSets leading up to it. | |
| getTopLevelDomain | back to summary |
|---|---|
| private static String getTopLevelDomain(String domain) | |
| match | back to summary |
|---|---|
| pack-priv DomainName. Find a match for the target string. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final RegisteredDomain. | |
| pack-priv boolean | |
| private final int | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private static int | |
| pack-priv DomainName. | |
| private DomainName. | |
| private DomainName. | matchNormal(String domain, DomainName.
Check for a match with an explicit name rule or a wildcard rule (i.e., a non-exception rule). |
| private DomainName. | |
| private DomainName. | |
| private static int | |
| private static LinkedList |
| AUTHS | back to summary |
|---|---|
| private static final RegisteredDomain. | |
| hasExceptions | back to summary |
|---|---|
| pack-priv boolean hasExceptions | |
| numLabels | back to summary |
|---|---|
| private final int numLabels | |
| rules | back to summary |
|---|---|
| private final Set<DomainName. | |
| RuleSet | back to summary |
|---|---|
| pack-priv RuleSet(int n) | |
| addRule | back to summary |
|---|---|
| pack-priv void addRule(int auth, String rule) | |
| labels | back to summary |
|---|---|
| private static int labels(String s, int n) Returns a substring (index) with the n right-most labels from s. Returns -1 if s does not have at least n labels, 0, if the substring is s. | |
| match | back to summary |
|---|---|
| pack-priv DomainName. | |
| matchException | back to summary |
|---|---|
| private DomainName. Check for a match with an exception rule. | |
| matchNormal | back to summary |
|---|---|
| private DomainName. Check for a match with an explicit name rule or a wildcard rule (i.e., a non-exception rule). | |
| matchOther | back to summary |
|---|---|
| private DomainName. A left-to-right comparison of labels. The simplest approach to doing match() would be to use a descending iterator giving a right-to-left comparison. But, it's more efficient to do left-to-right compares because the left most labels are the ones most likely to be different. We just have to figure out which label to start at. | |
| matchWildcard | back to summary |
|---|---|
| private DomainName. | |
| numLabels | back to summary |
|---|---|
| private static int numLabels(String rule) | |
| split | back to summary |
|---|---|
| private static LinkedList | |