AbstractProxySettings method
This is the constructor for the ProxySettings class.
To initiate the use of a proxy server, create a ProxySettings object with this constructor and then pass the object to the setProxy method.
Syntax
proxySettings = new ProxySettings(uri, port, username, password);
proxySettings = new ProxySettings(uri, port);
proxySettings = new ProxySettings(uri, username, password);
proxySettings = new ProxySettings(uri);
proxySettings = new ProxySettings();
Parameters
- uri
- Type:String
- The proxy's server URI.
- port
- Type:int
- The proxy's port (default 80).
- username
- Type:String
- The username to be sent to the proxy (default null).
- password
- Type:String
- The password to be sent to the proxy (default null).
Return value
- Type: AbstractProxySettings