AbstractProxySettings method
This is the constructor for the AbstractProxySettings class.
To initiate the use of a proxy server, create a AbstractProxySettings object with this constructor and then pass the object to the setProxy method.
Syntax
proxySettings = new AbstractProxySettings(uri, port, username, password);
proxySettings = new AbstractProxySettings(uri, port);
proxySettings = new AbstractProxySettings(uri, username, password);
proxySettings = new AbstractProxySettings(uri);
proxySettings = new AbstractProxySettings();
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