public class DnsEndpoint extends Object
Constructor and Description |
---|
DnsEndpoint(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getHost() |
int |
getPort() |
public DnsEndpoint(String host, int port)
public static DnsEndpoint fromConfigMap(Map<?,?> configMap)
configMap
- The Map that was extracted from a config file.DnsEndpoint
instance populated with whatever information we could extract.public String getHost()
public int getPort()
Copyright © 2021. All rights reserved.