Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.lenya.net
Class ProxyManager  view ProxyManager download ProxyManager.java

java.lang.Object
  extended byorg.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.


Field Summary
(package private) static org.apache.log4j.Category log
           
(package private)  java.util.Vector proxies
           
 
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
 

Field Detail

log

static org.apache.log4j.Category log

proxies

java.util.Vector proxies
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

Method Detail

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