Skip to main content

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;

AbstractProxySettings 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

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