1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jdiagnose.library;
17
18 /***
19 * Holder class for proxy information.
20 *
21 * @author jmccrindle
22 */
23 public class HttpProxyConfig {
24
25 private String proxyHost = null;
26 private String proxyPort = null;
27 private String proxyUsername = null;
28 private String proxyPassword = null;
29
30 /***
31 * @param proxyHost
32 * @param proxyPort
33 * @param proxyUsername
34 * @param proxyPassword
35 */
36 public HttpProxyConfig(String proxyHost, String proxyPort,
37 String proxyUsername, String proxyPassword) {
38 super();
39 this.proxyHost = proxyHost;
40 this.proxyPort = proxyPort;
41 this.proxyUsername = proxyUsername;
42 this.proxyPassword = proxyPassword;
43 }
44
45 public HttpProxyConfig() {
46 super();
47 }
48
49 /***
50 * @return
51 */
52 public String getProxyHost() {
53 return proxyHost;
54 }
55
56 /***
57 * @return
58 */
59 public String getProxyPassword() {
60 return proxyPassword;
61 }
62
63 /***
64 * @return
65 */
66 public String getProxyPort() {
67 return proxyPort;
68 }
69
70 /***
71 * @return
72 */
73 public String getProxyUsername() {
74 return proxyUsername;
75 }
76
77 /***
78 * @param string
79 */
80 public void setProxyHost(String string) {
81 proxyHost = string;
82 }
83
84 /***
85 * @param string
86 */
87 public void setProxyPassword(String string) {
88 proxyPassword = string;
89 }
90
91 /***
92 * @param string
93 */
94 public void setProxyPort(String string) {
95 proxyPort = string;
96 }
97
98 /***
99 * @param string
100 */
101 public void setProxyUsername(String string) {
102 proxyUsername = string;
103 }
104
105 }