com.applitools.eyes.AutProxySettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyes-common-java5 Show documentation
Show all versions of eyes-common-java5 Show documentation
Common code for Applitools Eyes Java SDK projects
package com.applitools.eyes;
public class AutProxySettings extends AbstractProxySettings {
protected String[] domains;
protected AutProxyMode autProxyMode;
/**
* Setting a separated proxy for requests made to non-eyes domains.
* If the AUT proxy is set, it cannot be changed again for those specific requests by any means.
* If AUT proxy is set to null, there will be no proxy for those specific requests.
*/
public AutProxySettings(AbstractProxySettings proxySettings) {
this(proxySettings, null, null);
}
/**
* Setting a separated proxy for requests made to non-eyes domains. Requests to other non-eyes domains will be sent without a proxy.
* If the AUT proxy is set, it cannot be changed again for those specific requests by any means.
* If AUT proxy is set to null, the behavior will be the same as {@link #AutProxySettings(AbstractProxySettings)}
*/
public AutProxySettings(AbstractProxySettings proxySettings, String[] domains) {
this(proxySettings, domains, AutProxyMode.ALLOW);
}
/**
* Setting a separated proxy for requests sent to the given domains (if mode is {@link AutProxyMode#ALLOW}
* or for requests sent to domains other than the given domains (if mode is {@link AutProxyMode#BLOCK}.
* If the AUT proxy is set, it cannot be changed again for those specific requests by any means.
* If AUT proxy is set to null, the behavior will be the same as {@link #AutProxySettings(AbstractProxySettings)}
*/
public AutProxySettings(AbstractProxySettings proxySettings, String[] domains, AutProxyMode autProxyMode) {
super(proxySettings.getUri(), proxySettings.getPort(), proxySettings.getUsername(), proxySettings.getPassword());
this.uri = proxySettings.getUri();
this.password = proxySettings.getPassword();
this.username = proxySettings.getUsername();
this.port = proxySettings.getPort();
this.domains = domains;
this.autProxyMode = autProxyMode;
}
public String[] getDomains() { return this.domains; }
public AutProxyMode getAutProxyMode() {
return this.autProxyMode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy