Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.util.http
Class ProxyUtil

java.lang.Object
  extended by eu.esdihumboldt.util.http.ProxyUtil

public class ProxyUtil
extends Object

Proxy utility methods

Author:
Simon Templer

Constructor Summary
ProxyUtil()
           
 
Method Summary
static void addInitializer(Runnable initializer)
          Add a proxy initializer.
static Proxy findProxy(URI uri)
          Tries to find the system's proxy configuration for a given URI
static void setupClient(org.apache.http.impl.client.DefaultHttpClient client, Proxy proxy)
          Set-up the given HTTP client to use the given proxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyUtil

public ProxyUtil()
Method Detail

findProxy

public static Proxy findProxy(URI uri)
Tries to find the system's proxy configuration for a given URI

Parameters:
uri - the URI
Returns:
the proxy configuration (host and port)

setupClient

public static void setupClient(org.apache.http.impl.client.DefaultHttpClient client,
                               Proxy proxy)
Set-up the given HTTP client to use the given proxy

Parameters:
client - the HTTP client
proxy - the proxy

addInitializer

public static void addInitializer(Runnable initializer)
Add a proxy initializer. It will be called before the first proxy usage

Parameters:
initializer - the initializer

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d