Class DnsEndpoint

java.lang.Object
net.glowstone.net.config.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.
      Parameters:
      configMap - The Map that was extracted from a config file.
      Returns:
      A DnsEndpoint instance populated with whatever information we could extract.
    • getHost

      public String getHost()
    • getPort

      public int getPort()