Top Description Inners Fields Constructors Methods
com.sun.webkit.network

pack-priv final Class PublicSuffixes

extends Object
Class Inheritance
Imports
java.io.BufferedReader, .File, .FileInputStream, .FileNotFoundException, .IOException, .InputStream, .InputStreamReader, java.net.IDN, java.util.HashMap, .Map, java.util.concurrent.ConcurrentHashMap, java.util.function.BooleanSupplier, java.util.zip.ZipEntry, .ZipInputStream, com.sun.javafx.logging.PlatformLogger, .PlatformLogger.Level

A collection of static utility methods dealing with "public suffixes".

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum
PublicSuffixes.Rule

Public suffix list rule types.

private static class

Field Summary

Modifier and TypeField and Description
private static final PlatformLogger
private static final File
pslFile

The public suffix list file.

private static final boolean
private static final Map<String, PublicSuffixes.Rules>
rulesCache

The mapping from top-level domain names to public suffix list rules.

Constructor Summary

AccessConstructor and Description
private
PublicSuffixes()

The private default constructor.

Method Summary

Modifier and TypeMethod and Description
pack-priv static boolean
isPublicSuffix(String domain)

Determines if a domain is a public suffix.

pack-priv static boolean
pslFileExists()

Returns whether the public suffix list file is available.

private static String
toLogString(Map<String, PublicSuffixes.Rule> rules)

Converts a map of rules to a string suitable for displaying in the log.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
private static final PlatformLogger logger
pslFileback to summary
private static final File pslFile

The public suffix list file.

pslFileExistsback to summary
private static final boolean pslFileExists
rulesCacheback to summary
private static final Map<String, PublicSuffixes.Rules> rulesCache

The mapping from top-level domain names to public suffix list rules.

Constructor Detail

PublicSuffixesback to summary
private PublicSuffixes()

The private default constructor. Ensures non-instantiability.

Method Detail

isPublicSuffixback to summary
pack-priv static boolean isPublicSuffix(String domain)

Determines if a domain is a public suffix.

pslFileExistsback to summary
pack-priv static boolean pslFileExists()

Returns whether the public suffix list file is available.

toLogStringback to summary
private static String toLogString(Map<String, PublicSuffixes.Rule> rules)

Converts a map of rules to a string suitable for displaying in the log.

com.sun.webkit.network back to summary

private final Enum PublicSuffixes.Rule

extends Enum<PublicSuffixes.Rule>
Class Inheritance

Public suffix list rule types.

Field Summary

Modifier and TypeField and Description
public static final PublicSuffixes.Rule
public static final PublicSuffixes.Rule
public static final PublicSuffixes.Rule

Constructor Summary

AccessConstructor and Description
private
Rule()

Method Summary

Modifier and TypeMethod and Description
public static PublicSuffixes.Rule
public static PublicSuffixes.Rule[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EXCEPTION_RULEback to summary
public static final PublicSuffixes.Rule EXCEPTION_RULE
SIMPLE_RULEback to summary
public static final PublicSuffixes.Rule SIMPLE_RULE
WILDCARD_RULEback to summary
public static final PublicSuffixes.Rule WILDCARD_RULE

Constructor Detail

Ruleback to summary
private Rule()

Method Detail

valueOfback to summary
public static PublicSuffixes.Rule valueOf(String name)
valuesback to summary
public static PublicSuffixes.Rule[] values()
com.sun.webkit.network back to summary

private Class PublicSuffixes.Rules

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Map<String, PublicSuffixes.Rule>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static PublicSuffixes.Rules
private static InputStream
pack-priv static PublicSuffixes.Rules
getRules(String domain)

private static String
pack-priv boolean
match(String domain)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

rulesback to summary
private final Map<String, PublicSuffixes.Rule> rules

Constructor Detail

Rulesback to summary
private Rules(InputStream is) throws IOException

Method Detail

createRulesback to summary
private static PublicSuffixes.Rules createRules(String tld)
getPubSuffixStreamback to summary
private static InputStream getPubSuffixStream()
getRulesback to summary
pack-priv static PublicSuffixes.Rules getRules(String domain)
getTopLevelDomainback to summary
private static String getTopLevelDomain(String domain)
matchback to summary
pack-priv boolean match(String domain)