Package net.glowstone.net.config
Class DnsEndpoint
java.lang.Object
net.glowstone.net.config.DnsEndpoint
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.getHost()
int
getPort()
-
Constructor Details
-
DnsEndpoint
-
-
Method Details
-
fromConfigMap
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
-
getPort
public int getPort()
-