com.jniwrapper.win32.ie.proxy
Class ProxyManager

java.lang.Object
  extended by com.jniwrapper.win32.ie.proxy.ProxyManager

public class ProxyManager
extends java.lang.Object

This proxy manager allows working with the global proxy settings and the proxy settings available only for the current process.


Method Summary
static ProxyManager getInstance()
          Returns the ProxyManager instance.
 ProxyConfiguration getProxyConfiguration(int type)
          Returns the specfied proxy settings.
 void updateProxyConfiguration(ProxyConfiguration configuration, int type)
          Updates appropriate proxy settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProxyManager getInstance()
Returns the ProxyManager instance.

Returns:
the ProxyManager instance.

getProxyConfiguration

public ProxyConfiguration getProxyConfiguration(int type)
Returns the specfied proxy settings.

Parameters:
type - must be one of the following constants: ProxyConfiguration.Type.GLOBAL or ProxyConfiguration.Type.PROCESS
Returns:
the specified proxy settings.

updateProxyConfiguration

public void updateProxyConfiguration(ProxyConfiguration configuration,
                                     int type)
Updates appropriate proxy settings.

Parameters:
configuration - the new proxy settings
type - must be one of the following constants: ProxyConfiguration.Type.GLOBAL or ProxyConfiguration.Type.PROCESS