|
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModel;
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* This class represents the information of setting up global proxy
|
|
|
|
* This class represents the information of setting up global proxy
|
|
|
@ -35,71 +34,75 @@ import java.util.List;
|
|
|
|
)
|
|
|
|
)
|
|
|
|
public class GlobalProxy extends AndroidOperation implements Serializable {
|
|
|
|
public class GlobalProxy extends AndroidOperation implements Serializable {
|
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(name = "host", value = "The hostname of the proxy server", required = true)
|
|
|
|
@ApiModelProperty(
|
|
|
|
private String host;
|
|
|
|
name = "proxyConfigType",
|
|
|
|
|
|
|
|
value = "Type of the proxy",
|
|
|
|
|
|
|
|
required = true
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
private ProxyType proxyConfigType;
|
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(
|
|
|
|
@ApiModelProperty(
|
|
|
|
name = "port",
|
|
|
|
name = "proxyHost",
|
|
|
|
value = "The port which the proxy server is running",
|
|
|
|
value = "The hostname of the proxy server"
|
|
|
|
required = true)
|
|
|
|
)
|
|
|
|
private int port;
|
|
|
|
private String proxyHost;
|
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(
|
|
|
|
@ApiModelProperty(
|
|
|
|
name = "excludedList",
|
|
|
|
name = "proxyPort",
|
|
|
|
value = "Hosts to exclude using the proxy on connections for. These hosts can use wildcards such as " +
|
|
|
|
value = "The port which the proxy server is running"
|
|
|
|
"*.example.com"
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
private List<String> excludedList;
|
|
|
|
private int proxyPort;
|
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(
|
|
|
|
@ApiModelProperty(
|
|
|
|
name = "username",
|
|
|
|
name = "proxyExclList",
|
|
|
|
value = "Username of the proxy server"
|
|
|
|
value = "Hosts to exclude using the proxy on connections for. These hosts can use wildcards such as " +
|
|
|
|
|
|
|
|
"*.example.com"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
private String username;
|
|
|
|
private String proxyExclList;
|
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(
|
|
|
|
@ApiModelProperty(
|
|
|
|
name = "password",
|
|
|
|
name = "proxyPacUrl",
|
|
|
|
value = "Password of the proxy server"
|
|
|
|
value = "PAC file URL to auto config proxy"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
private String password;
|
|
|
|
private String proxyPacUrl;
|
|
|
|
|
|
|
|
|
|
|
|
public String getHost() {
|
|
|
|
public ProxyType getProxyConfigType() {
|
|
|
|
return host;
|
|
|
|
return proxyConfigType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setHost(String host) {
|
|
|
|
public void setProxyConfigType(ProxyType proxyConfigType) {
|
|
|
|
this.host = host;
|
|
|
|
this.proxyConfigType = proxyConfigType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getPort() {
|
|
|
|
public String getProxyHost() {
|
|
|
|
return port;
|
|
|
|
return proxyHost;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setPort(int port) {
|
|
|
|
public void setProxyHost(String proxyHost) {
|
|
|
|
this.port = port;
|
|
|
|
this.proxyHost = proxyHost;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<String> getExcludedList() {
|
|
|
|
public int getProxyPort() {
|
|
|
|
return excludedList;
|
|
|
|
return proxyPort;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setExcludedList(List<String> excludedList) {
|
|
|
|
public void setProxyPort(int proxyPort) {
|
|
|
|
this.excludedList = excludedList;
|
|
|
|
this.proxyPort = proxyPort;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getUsername() {
|
|
|
|
public String getProxyExclList() {
|
|
|
|
return username;
|
|
|
|
return proxyExclList;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setUsername(String username) {
|
|
|
|
public void setProxyExclList(String proxyExclList) {
|
|
|
|
this.username = username;
|
|
|
|
this.proxyExclList = proxyExclList;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getPassword() {
|
|
|
|
public String getProxyPacUrl() {
|
|
|
|
return password;
|
|
|
|
return proxyPacUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setPassword(String password) {
|
|
|
|
public void setProxyPacUrl(String proxyPacUrl) {
|
|
|
|
this.password = password;
|
|
|
|
this.proxyPacUrl = proxyPacUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|