1 package com.atlassian.httpclient.api;
2
3 import java.net.InetAddress;
4 import java.net.UnknownHostException;
5
6 /**
7 * Resolves ip addresses based on a host
8 */
9 public interface HostResolver {
10
11 /**
12 * Get an array of IP addresses for a host
13 * @param host host to get ip for. Can just be an ip itself
14 * @return resolved addresses for the host
15 * @throws UnknownHostException if the host cannot be found, or {@link BannedHostException} if the ip is blacklisted
16 */
17 InetAddress[] resolve(String host) throws UnknownHostException;
18 }
19