rabbit.httpio
Class SimpleProxyChain
java.lang.Object
rabbit.httpio.SimpleProxyChain
- All Implemented Interfaces:
- ProxyChain
public class SimpleProxyChain
- extends Object
- implements ProxyChain
A default implementation of a ProxyChain that always return
the same SimpleResolver.
- Author:
- Robert Olofsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleProxyChain
public SimpleProxyChain(NioHandler nio,
DNSHandler dnsHandler)
- Create a new Proxy chain that always uses direct connections.
- Parameters:
nio
- the NioHandler to use for running background tasksdnsHandler
- the DNSHandler to use for DNS lookups
getResolver
public Resolver getResolver(String url)
- Description copied from interface:
ProxyChain
- Get the Resolver to use for the given url
- Specified by:
getResolver
in interface ProxyChain
- Parameters:
url
- the address to connect to.
- Returns:
- the Resolver to use