org.apache.lenya.net
Class ProxyManager

java.lang.Object
  extended by org.apache.lenya.net.ProxyManager

public class ProxyManager
extends java.lang.Object

The ProxyManager Class is used to set or unset the java systems proxy settings based on the hostname of the host that want to be reached.


Constructor Summary
ProxyManager()
          Creating an instance of ProxyManager without argurments reads the configuration from the default configuration file ($XPS_HOME/xml/xps/proxyconf.xml)
ProxyManager(java.lang.String conffile)
          The ProxyManager is created using the customized conffile
 
Method Summary
static void main(java.lang.String[] args)
          DOCUMENT ME!
 java.util.Vector readConfig(java.lang.String fname)
          Read proxy configuration
 boolean set(java.lang.String host)
          Check if one of the configured proxies is appropriate for this host and setup the system configuration accordingly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyManager

public ProxyManager()
Creating an instance of ProxyManager without argurments reads the configuration from the default configuration file ($XPS_HOME/xml/xps/proxyconf.xml)


ProxyManager

public ProxyManager(java.lang.String conffile)
The ProxyManager is created using the customized conffile

Parameters:
conffile - configuration file to use
Method Detail

main

public static void main(java.lang.String[] args)
DOCUMENT ME!

Parameters:
args - DOCUMENT ME!

set

public boolean set(java.lang.String host)
Check if one of the configured proxies is appropriate for this host and setup the system configuration accordingly.

Parameters:
host - name of the host the connection should be initiated to
Returns:
DOCUMENT ME!

readConfig

public java.util.Vector readConfig(java.lang.String fname)
Read proxy configuration

Parameters:
fname - Filename of proxy configuration
Returns:
proxies


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.