public class ProxyManager
extends java.lang.Object
Constructor and Description |
---|
ProxyManager(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
ProxyConfig |
createProxyConfig(ProxyProtocolType protocol,
ProxyModeType mode,
java.lang.String hostname,
int port,
java.lang.String username,
java.lang.String password)
Creates a new Proxy configuration with the given parameters
If mode is ZDK::ProxyModeType::Environemnt, the environment/system settings are used and arugments _hostname_ and _port_ are ignored.
|
protected void |
finalize()
Ensures the underlying native object destruction
|
ProxyConfig |
getProxyConfig(ProxyProtocolType protocol,
ProxyModeType mode)
Gets the current proxy configuration
Gets the currently configured proxy for given protocol.
|
ProxyConfig |
getProxyConfigForURL(java.lang.String url)
Gets the current proxy configuration for the specified URL
|
long |
handle()
Gets the pointer/address to the underlying native object
|
Result |
setProxyConfig(ProxyConfig value)
Sets the current proxy configuration
Changes the current proxy configuration to use for specified protocol requests.
|
public ProxyManager(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public ProxyConfig createProxyConfig(ProxyProtocolType protocol, ProxyModeType mode, java.lang.String hostname, int port, java.lang.String username, java.lang.String password)
protocol
- The protocol whose settings to configuremode
- Which settings to sethostname
- The hostname of the configured proxyport
- The port of the configured proxyusername
- The username to use when authenticatingpassword
- The password to use when authenticatingProxyConfig
public Result setProxyConfig(ProxyConfig value)
value
- The configuration to setProxyConfig
public ProxyConfig getProxyConfig(ProxyProtocolType protocol, ProxyModeType mode)
protocol
- The protocol whose settings to getmode
- Which settings to getProxyConfig
public ProxyConfig getProxyConfigForURL(java.lang.String url)
url
- The URL to check againstProxyConfig