All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.applitools.eyes.ProxySettings Maven / Gradle / Ivy

There is a newer version: 2.57
Show newest version
/*
 * Applitools software.
 */
package com.applitools.eyes;

import com.applitools.utils.ArgumentGuard;

/***
 * Encapsulates settings for sending Eyes communication via proxy.
 */
public class ProxySettings {
    private String uri;
    private String username;
    private String password;

    /**
     *
     * @param uri The proxy's URI.
     * @param username The username to be sent to the proxy.
     * @param password The password to be sent to the proxy.
     */
    public ProxySettings(String uri, String username, String password) {
        ArgumentGuard.notNull(uri, "uri");
        this.uri = uri;
        this.username = username;
        this.password = password;
    }

    /**
     * Defines proxy settings with empty username/password.
     * @param uri The proxy's URI.
     */
    @SuppressWarnings("UnusedDeclaration")
    public ProxySettings(String uri) {
        this(uri, null, null);
    }

    public String getUri() {
        return uri;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy