com.gateway.connector.tcp.client.ProxyInfo Maven / Gradle / Ivy
package com.gateway.connector.tcp.client;
public class ProxyInfo {
private ProxyType proxyType;
private String proxyHost;
private int proxyPort;
private String proxyUser;
private String proxyPassword;
public ProxyInfo(ProxyType proxyType, String proxyHost, int proxyPort, String proxyUser, String proxyPassword) {
this.proxyType = proxyType;
this.proxyHost = proxyHost;
this.proxyPort = proxyPort;
this.proxyUser = proxyUser;
this.proxyPassword = proxyPassword;
}
public ProxyInfo(ProxyType proxyType, String proxyHost, int proxyPort) {
this.proxyType = proxyType;
this.proxyHost = proxyHost;
this.proxyPort = proxyPort;
}
public ProxyType getProxyType() {
return proxyType;
}
public String getProxyHost() {
return proxyHost;
}
public int getProxyPort() {
return proxyPort;
}
public String getProxyUser() {
return proxyUser;
}
public String getProxyPassword() {
return proxyPassword;
}
public enum ProxyType {
http, socks4, socks5
}
}