java.lang.Object
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
static org.apache.log4j.Category log
proxies
java.util.Vector proxies
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
main
public static void main(java.lang.String[] 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.
readConfig
public java.util.Vector readConfig(java.lang.String fname)
- Read proxy configuration