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

org.smartboot.http.client.ProxyConfig Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package org.smartboot.http.client;

/**
 * @author 三刀([email protected])
 * @version V1.0 , 2023/2/13
 */
class ProxyConfig {
    /**
     * 代理服务器地址
     */
    private final String proxyHost;
    /**
     * 代理服务器端口
     */
    private final int proxyPort;
    /**
     * 代理服务器授权账户
     */
    private final String proxyUserName;
    /**
     * 代理服务器授权密码
     */
    private final String proxyPassword;

    public ProxyConfig(String proxyHost, int proxyPort, String proxyUserName, String proxyPassword) {
        this.proxyHost = proxyHost;
        this.proxyPort = proxyPort;
        this.proxyUserName = proxyUserName;
        this.proxyPassword = proxyPassword;
    }

    public String getProxyHost() {
        return proxyHost;
    }

    public int getProxyPort() {
        return proxyPort;
    }

    public String getProxyUserName() {
        return proxyUserName;
    }

    public String getProxyPassword() {
        return proxyPassword;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy