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

com.cx.restclient.dto.ProxyConfig Maven / Gradle / Ivy

The newest version!
package com.cx.restclient.dto;

import java.io.Serializable;

public class ProxyConfig implements Serializable {

    private String host;
    private int port;
    private String username;
    private String password;
    private boolean useHttps;
    private String noproxyHosts;

    public String getNoproxyHosts() {
		return noproxyHosts;
	}

	public void setNoproxyHosts(String noproxyHosts) {
		this.noproxyHosts = noproxyHosts;
	}

	public ProxyConfig() {
    }

    public ProxyConfig(String host, int port, String username, String password, boolean useHttps) {
        this.host = host;
        this.port = port;
        this.username = username;
        this.password = password;
        this.useHttps = useHttps;
        this.noproxyHosts = "";
    }
    /**
     * TO be used in Bamboo plugin for the time being
     * @param host
     * @param port
     * @param username
     * @param password
     * @param useHttps
     */
    public ProxyConfig(String host, int port, String username, String password, boolean useHttps, String noProxyHosts){
        this.port = port;
        this.username = username;
        this.password = password;
        this.useHttps = useHttps;
        this.noproxyHosts = noProxyHosts;
    }
    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isUseHttps() {
        return useHttps;
    }

    public void setUseHttps(boolean useHttps) {
        this.useHttps = useHttps;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy