ProxySettings class
An object used to set and retrieve the details of the proxy server used to interact with the Eyes server.
To set a proxy server, create an object of this type and pass it to the setProxy method.
Import statement
import com.applitools.eyes.ProxySettings;
ProxySettings method
Syntax
ProxySettings proxySettings = new ProxySettings(uri, port, username, password);
ProxySettings proxySettings = new ProxySettings(uri, port);
ProxySettings proxySettings = new ProxySettings(uri, username, password);
ProxySettings proxySettings = new ProxySettings(uri);
ProxySettings 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: ProxySettings
getPassword method
Syntax
String value = proxySettings.getPassword();
Parameters
This method does not take any parameters.
Return value
Type: String
getPort method
Syntax
int value = proxySettings.getPort();
Parameters
This method does not take any parameters.
Return value
Type: int
getUri method
Syntax
String value = proxySettings.getUri();
Note: This method is a static method.
Parameters
This method does not take any parameters.
Return value
Type: String
getUsername method
Syntax
String value = proxySettings.getUsername();
Parameters
This method does not take any parameters.
Return value
Type: String