Enum Class DnsAddressLookup

java.lang.Object
java.lang.Enum<DnsAddressLookup>
io.helidon.webclient.api.DnsAddressLookup
All Implemented Interfaces:
Serializable, Comparable<DnsAddressLookup>, Constable

public enum DnsAddressLookup extends Enum<DnsAddressLookup>
DNS address lookup strategy.
  • Enum Constant Details

    • IPV4

      public static final DnsAddressLookup IPV4
      Only IPv4 addresses will be used.
    • IPV6

      public static final DnsAddressLookup IPV6
      Only IPv6 addresses will be used.
    • IPV4_PREFERRED

      public static final DnsAddressLookup IPV4_PREFERRED
      Both IPv4 and IPv6 addresses will be used, but if there are any IPv4, they take precedence.
    • IPV6_PREFERRED

      public static final DnsAddressLookup IPV6_PREFERRED
      Both IPv4 and IPv6 addresses will be used, but if there are any IPv6, they take precedence.
  • Method Details

    • values

      public static DnsAddressLookup[] 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 DnsAddressLookup 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
    • defaultLookup

      public static DnsAddressLookup defaultLookup()
      Default address lookup for this VM.
      Returns:
      default lookup
    • filter

      public InetAddress[] filter(InetAddress[] addresses)
      Process obtained InetAddress array according to the selected lookup strategy.
      Parameters:
      addresses - addresses to be processed
      Returns:
      processed array