Enum Class TLDError

java.lang.Object
java.lang.Enum<TLDError>
org.gnome.soup.TLDError
All Implemented Interfaces:
Serializable, Comparable<TLDError>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum TLDError extends Enum<TLDError> implements Enumeration
Error codes for SOUP_TLD_ERROR.
  • Enum Constant Details

    • INVALID_HOSTNAME

      public static final TLDError INVALID_HOSTNAME
      A hostname was syntactically invalid.
    • IS_IP_ADDRESS

      public static final TLDError IS_IP_ADDRESS
      The passed-in "hostname" was actually an IP address (and thus has no base domain or public suffix).
    • NOT_ENOUGH_DOMAINS

      public static final TLDError NOT_ENOUGH_DOMAINS
      The passed-in hostname did not have enough components. Eg, calling Soup.tldGetBaseDomain(String) on "co.uk".
    • NO_BASE_DOMAIN

      public static final TLDError NO_BASE_DOMAIN
      The passed-in hostname has no recognized public suffix.
    • NO_PSL_DATA

      public static final TLDError NO_PSL_DATA
      The Public Suffix List was not available.
  • Method Details

    • values

      public static TLDError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TLDError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static TLDError of(int value)
      Create a new TLDError for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static TLDError of(MemorySegment address)
      Create a new TLDError for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the TLDError class.
      Returns:
      the GType
    • quark

      public static Quark quark()
      Registers error quark for soup_tld_get_base_domain() if needed.
      Returns:
      Error quark for Soup TLD functions.