uk.ac.ebi.intact.util
Class HttpProxyManager

java.lang.Object
  |
  +--uk.ac.ebi.intact.util.HttpProxyManager

public class HttpProxyManager
extends java.lang.Object

Setup the HTTP proxy setting in the current JVM.

When called, the static method setup() looks up in the classpath for the file:

config/proxy.properties
in order to grab the information related to the HTTP proxy setup.
If the property proxy.enable is set to true, we setup the current JVM to use the described configuration.

Version:
$Id: HttpProxyManager.java,v 1.1 2003/09/18 15:14:29 skerrien Exp $
Author:
Samuel Kerrien (skerrien@ebi.ac.uk)
See Also:
PropertyLoader

Nested Class Summary
static class HttpProxyManager.ProxyConfigurationNotFound
           
 
Field Summary
static java.lang.String PROXY_PROPERTIES_FILE
           
 
Constructor Summary
HttpProxyManager()
           
 
Method Summary
static void setup()
          Setup the HTTP proxy.
static void setup(java.io.PrintStream out)
          Setup the HTTP proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROXY_PROPERTIES_FILE

public static final java.lang.String PROXY_PROPERTIES_FILE
See Also:
Constant Field Values
Constructor Detail

HttpProxyManager

public HttpProxyManager()
Method Detail

setup

public static void setup(java.io.PrintStream out)
                  throws HttpProxyManager.ProxyConfigurationNotFound
Setup the HTTP proxy.

Parameters:
out - where to display logging messages. null if you don't want any.
Throws:
HttpProxyManager.ProxyConfigurationNotFound - if the proxy.properties file is not found
HttpProxyManager.ProxyConfigurationNotFound

setup

public static void setup()
                  throws HttpProxyManager.ProxyConfigurationNotFound
Setup the HTTP proxy. Displays the logging on STDOUT.

Throws:
HttpProxyManager.ProxyConfigurationNotFound - if the proxy.properties file is not found
HttpProxyManager.ProxyConfigurationNotFound


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk