public class DefaultHostResolver extends Object implements HostResolver
| Modifier and Type | Field and Description |
|---|---|
static HostResolver |
INSTANCE |
| Constructor and Description |
|---|
DefaultHostResolver() |
| Modifier and Type | Method and Description |
|---|---|
InetAddress[] |
resolve(String host)
Get an array of IP addresses for a host
|
public static final HostResolver INSTANCE
public InetAddress[] resolve(String host) throws UnknownHostException
HostResolverresolve in interface HostResolverhost - host to get ip for. Can just be an ip itselfUnknownHostException - if the host cannot be found, or BannedHostException if the ip is blacklistedCopyright © 2012–2018 Atlassian. All rights reserved.