rabbit.httpio
Class SimpleProxyChain

java.lang.Object
  extended by 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

Constructor Summary
SimpleProxyChain(NioHandler nio, DNSHandler dnsHandler)
          Create a new Proxy chain that always uses direct connections.
 
Method Summary
 Resolver getResolver(String url)
          Get the Resolver to use for the given url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 tasks
dnsHandler - the DNSHandler to use for DNS lookups
Method Detail

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