Package org.littleshoot.proxy
Class DefaultHostResolver
- java.lang.Object
-
- org.littleshoot.proxy.DefaultHostResolver
-
- All Implemented Interfaces:
HostResolver
public class DefaultHostResolver extends Object implements HostResolver
Default implementation ofHostResolver
that just usesInetAddress.getByName(String)
.
-
-
Constructor Summary
Constructors Constructor Description DefaultHostResolver()
-
-
-
Method Detail
-
resolve
public InetSocketAddress resolve(String host, int port) throws UnknownHostException
- Specified by:
resolve
in interfaceHostResolver
- Throws:
UnknownHostException
-
-