rabbit.httpio
Class ProxiedProxyChain

java.lang.Object
  extended by rabbit.httpio.ProxiedProxyChain
All Implemented Interfaces:
ProxyChain

public class ProxiedProxyChain
extends Object
implements ProxyChain

An implementation of ProxyChain that always goes through some other proxy

Author:
Robert Olofsson

Constructor Summary
ProxiedProxyChain(InetAddress proxy, int port, String proxyAuth)
          Create a new ProxyChain that always will proxy to the given address
 
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

ProxiedProxyChain

public ProxiedProxyChain(InetAddress proxy,
                         int port,
                         String proxyAuth)
Create a new ProxyChain that always will proxy to the given address

Parameters:
proxy - the hostname to connect to
port - the port to connect to
proxyAuth - the http basic proxy authentication token
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