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)
          Deprecated. use the Browsers.getProxy() method instead of the getProxyConfiguration(ProxyConfiguration.Type.GLOBAL) and the WebBrowser.getProxy() method instead of the getProxyConfiguration(ProxyConfiguration.Type.PROCESS).
 void updateProxyConfiguration(ProxyConfiguration configuration, int type)
          Deprecated. use the Browsers.setProxy(ProxyConfiguration) method instead of the updateProxyConfiguration(conf, ProxyConfiguration.Type.GLOBAL) and the WebBrowser.setProxy(ProxyConfiguration) method instead of the updateProxyConfiguration(conf, ProxyConfiguration.Type.PROCESS).
 
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)
Deprecated. use the Browsers.getProxy() method instead of the getProxyConfiguration(ProxyConfiguration.Type.GLOBAL) and the WebBrowser.getProxy() method instead of the getProxyConfiguration(ProxyConfiguration.Type.PROCESS).

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)
Deprecated. use the Browsers.setProxy(ProxyConfiguration) method instead of the updateProxyConfiguration(conf, ProxyConfiguration.Type.GLOBAL) and the WebBrowser.setProxy(ProxyConfiguration) method instead of the updateProxyConfiguration(conf, ProxyConfiguration.Type.PROCESS).

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