1 package org.apache.archiva.configuration;
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 @SuppressWarnings( "all" )
28 public class NetworkProxyConfiguration
29 implements java.io.Serializable
30 {
31
32
33
34
35
36
37
38
39
40
41 private String id;
42
43
44
45
46
47
48
49 private String protocol = "http";
50
51
52
53
54
55
56 private String host;
57
58
59
60
61
62
63 private int port = 8080;
64
65
66
67
68
69
70 private String username;
71
72
73
74
75
76
77 private String password;
78
79
80
81
82
83
84 private boolean useNtlm = false;
85
86
87
88
89
90
91
92
93
94
95
96 public String getHost()
97 {
98 return this.host;
99 }
100
101
102
103
104
105
106 public String getId()
107 {
108 return this.id;
109 }
110
111
112
113
114
115
116 public String getPassword()
117 {
118 return this.password;
119 }
120
121
122
123
124
125
126 public int getPort()
127 {
128 return this.port;
129 }
130
131
132
133
134
135
136
137 public String getProtocol()
138 {
139 return this.protocol;
140 }
141
142
143
144
145
146
147 public String getUsername()
148 {
149 return this.username;
150 }
151
152
153
154
155
156
157 public boolean isUseNtlm()
158 {
159 return this.useNtlm;
160 }
161
162
163
164
165
166
167 public void setHost( String host )
168 {
169 this.host = host;
170 }
171
172
173
174
175
176
177 public void setId( String id )
178 {
179 this.id = id;
180 }
181
182
183
184
185
186
187 public void setPassword( String password )
188 {
189 this.password = password;
190 }
191
192
193
194
195
196
197 public void setPort( int port )
198 {
199 this.port = port;
200 }
201
202
203
204
205
206
207
208 public void setProtocol( String protocol )
209 {
210 this.protocol = protocol;
211 }
212
213
214
215
216
217
218 public void setUseNtlm( boolean useNtlm )
219 {
220 this.useNtlm = useNtlm;
221 }
222
223
224
225
226
227
228 public void setUsername( String username )
229 {
230 this.username = username;
231 }
232
233
234 public int hashCode()
235 {
236 int result = 17;
237 result = 37 * result + ( id != null ? id.hashCode() : 0 );
238 return result;
239 }
240
241 public boolean equals( Object other )
242 {
243 if ( this == other )
244 {
245 return true;
246 }
247
248 if ( !( other instanceof NetworkProxyConfiguration ) )
249 {
250 return false;
251 }
252
253 NetworkProxyConfigurationpache/archiva/configuration/NetworkProxyConfiguration.html#NetworkProxyConfiguration">NetworkProxyConfiguration that = (NetworkProxyConfiguration) other;
254 boolean result = true;
255 result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
256 return result;
257 }
258
259 }