1
2
3
4
5
6
7
8 package org.apache.maven.settings;
9
10
11
12
13
14
15
16
17
18
19 @SuppressWarnings( "all" )
20 public class Proxy
21 extends IdentifiableBase
22 implements java.io.Serializable, java.lang.Cloneable
23 {
24
25
26
27
28
29
30
31
32
33
34
35
36
37 private boolean active = true;
38
39
40
41
42
43
44
45
46 private String protocol = "http";
47
48
49
50
51
52
53
54
55 private String username;
56
57
58
59
60
61
62
63
64 private String password;
65
66
67
68
69
70
71
72
73 private int port = 8080;
74
75
76
77
78
79
80
81
82 private String host;
83
84
85
86
87
88
89
90
91 private String nonProxyHosts;
92
93
94
95
96
97
98
99
100
101
102
103 public Proxy clone()
104 {
105 try
106 {
107 Proxy copy = (Proxy) super.clone();
108
109 return copy;
110 }
111 catch ( java.lang.Exception ex )
112 {
113 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
114 + " does not support clone()" ).initCause( ex );
115 }
116 }
117
118
119
120
121
122
123 public String getHost()
124 {
125 return this.host;
126 }
127
128
129
130
131
132
133 public String getNonProxyHosts()
134 {
135 return this.nonProxyHosts;
136 }
137
138
139
140
141
142
143 public String getPassword()
144 {
145 return this.password;
146 }
147
148
149
150
151
152
153 public int getPort()
154 {
155 return this.port;
156 }
157
158
159
160
161
162
163 public String getProtocol()
164 {
165 return this.protocol;
166 }
167
168
169
170
171
172
173 public String getUsername()
174 {
175 return this.username;
176 }
177
178
179
180
181
182
183 public boolean isActive()
184 {
185 return this.active;
186 }
187
188
189
190
191
192
193 public void setActive( boolean active )
194 {
195 this.active = active;
196 }
197
198
199
200
201
202
203 public void setHost( String host )
204 {
205 this.host = host;
206 }
207
208
209
210
211
212
213 public void setNonProxyHosts( String nonProxyHosts )
214 {
215 this.nonProxyHosts = nonProxyHosts;
216 }
217
218
219
220
221
222
223 public void setPassword( String password )
224 {
225 this.password = password;
226 }
227
228
229
230
231
232
233 public void setPort( int port )
234 {
235 this.port = port;
236 }
237
238
239
240
241
242
243 public void setProtocol( String protocol )
244 {
245 this.protocol = protocol;
246 }
247
248
249
250
251
252
253 public void setUsername( String username )
254 {
255 this.username = username;
256 }
257
258 }