|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.net.ProxyManager
public class ProxyManager
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 |
---|
public ProxyManager()
public ProxyManager(java.lang.String conffile)
ProxyManager
is created using the customized conffile
conffile
- configuration file to useMethod Detail |
---|
public static void main(java.lang.String[] args)
args
- DOCUMENT ME!public boolean set(java.lang.String host)
host
- name of the host the connection should be initiated to
public java.util.Vector readConfig(java.lang.String fname)
fname
- Filename of proxy configuration
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |