java.lang.Object
net.i2p.apache.http.conn.util.PublicSuffixList

public final class PublicSuffixListextends Object
Public suffix is a set of DNS names or wildcards concatenated with dots. It represents the part of a domain name which is not under the control of the individual registrant

An up-to-date list of suffixes can be obtained from publicsuffix.org.

  • Field Details

    • rules

      private final List<String> rules
      The suffix rules.
    • exceptions

      private final List<String> exceptions
      Rules that override a matching rule.
  • Constructor Details

    • PublicSuffixList

      public PublicSuffixList(List<String> rules, List<String> exceptions)
      Wraps the supplied rules and exceptions as unmodifiable lists.
      Parameters:
      rules - the domain suffix rules, must not be null
      exceptions - the exception rules, must not be null
  • Method Details

    • getRules

      public List<String> getRules()
      Return the suffix rules.
      Returns:
      the unmodifiable list of domain suffix rules given to the constructor
    • getExceptions

      public List<String> getExceptions()
      Return the exception rules.
      Returns:
      the unmodifiable list of exception rules given to the constructor