-
-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathProxy.java
More file actions
58 lines (44 loc) · 1.1 KB
/
Proxy.java
File metadata and controls
58 lines (44 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package jenkins.plugins.office365connector;
public class Proxy {
private String ip;
private Integer port;
private String username;
private String password;
public Proxy(String ip, Integer port, String username, String password) {
this.ip = ip;
this.port = port;
this.username = username;
this.password = password;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
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 proxyConfigured() {
try {
return (this.ip != null && this.ip != "");
} catch (NullPointerException ex) {
return false;
}
}
}