Class DnsEndpoint


public class DnsEndpoint extends Object
  • Constructor Details

    • DnsEndpoint

      public DnsEndpoint(String host, int port)
  • Method Details

    • fromConfigMap

      public static DnsEndpoint fromConfigMap(Map<?,​?> configMap)
      Extracts the needed information from a map of key-value pairs inside a config file to set the DNS server for an HTTP client.
      configMap - The Map that was extracted from a config file.
      A DnsEndpoint instance populated with whatever information we could extract.
    • getHost

      public String getHost()
    • getPort

      public int getPort()