public class CustomizableDNSResolver
extends org.apache.http.impl.conn.SystemDefaultDnsResolver
Constructor and Description |
---|
CustomizableDNSResolver() |
Modifier and Type | Method and Description |
---|---|
void |
add(String host,
InetAddress... ips)
Associates the given array of IP addresses to the given host in this DNS overrider.
|
InetAddress[] |
resolve(String host) |
public void add(String host, InetAddress... ips)
host
- The host name to be associated with the given IP.ips
- array of IP addresses to be resolved by this DNS overrider to the given host name.public InetAddress[] resolve(String host) throws UnknownHostException
resolve
in interface org.apache.http.conn.DnsResolver
resolve
in class org.apache.http.impl.conn.SystemDefaultDnsResolver
UnknownHostException
Copyright © 2008–2018. All rights reserved.