com.jniwrapper.win32.winhttp
Class RemoteProxySettings

java.lang.Object
  extended by com.jniwrapper.win32.winhttp.RemoteProxySettings
All Implemented Interfaces:
ProxySettings

public class RemoteProxySettings
extends java.lang.Object
implements ProxySettings

Returns the proxy configuration for the specified URL.


Constructor Summary
RemoteProxySettings(java.lang.String url, boolean autoLogon)
          Returns the proxy configuration for the specified URL.
RemoteProxySettings(java.lang.String url, java.lang.String pacFileUrl, boolean autoLogon)
          Returns the proxy configuration for the specified URL.
 
Method Summary
 int getPort()
          Returns the proxy port.
 java.lang.String[] getProxyBypass()
          Returns the proxy bypass.
 java.lang.String getURL()
          Returns the proxy URL.
 boolean isSet()
          Returns true if proxy is set; false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteProxySettings

public RemoteProxySettings(java.lang.String url,
                           boolean autoLogon)
                    throws WinHttpException
Returns the proxy configuration for the specified URL.

Parameters:
url - specifes the URL
autoLogon - if true credentials should automatically be sent
Throws:
WinHttpException

RemoteProxySettings

public RemoteProxySettings(java.lang.String url,
                           java.lang.String pacFileUrl,
                           boolean autoLogon)
                    throws WinHttpException
Returns the proxy configuration for the specified URL.

Parameters:
url - specifes the URL
pacFileUrl - specifies the URL of the PAC file
autoLogon - if true credentials should automatically be sent
Throws:
WinHttpException
Method Detail

isSet

public boolean isSet()
Returns true if proxy is set; false otherwise.

Specified by:
isSet in interface ProxySettings
Returns:
true if proxy is set; false otherwise

getURL

public java.lang.String getURL()
Returns the proxy URL.

Specified by:
getURL in interface ProxySettings
Returns:
the proxy URL

getPort

public int getPort()
Returns the proxy port.

Specified by:
getPort in interface ProxySettings
Returns:
the proxy port

getProxyBypass

public java.lang.String[] getProxyBypass()
Returns the proxy bypass.

Specified by:
getProxyBypass in interface ProxySettings
Returns:
the proxy bypass