1 package org.apache.maven.wagon.proxy;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.wagon.WagonConstants;
23
24 import java.io.Serializable;
25
26
27
28
29
30
31
32
33
34
35 public class ProxyInfo
36 implements Serializable
37 {
38 public static final String PROXY_SOCKS5 = "SOCKS_5";
39
40 public static final String PROXY_SOCKS4 = "SOCKS4";
41
42 public static final String PROXY_HTTP = "HTTP";
43
44
45
46
47 private String host = null;
48
49
50
51
52 private String userName = null;
53
54
55
56
57 private String password = null;
58
59
60
61
62 private int port = WagonConstants.UNKNOWN_PORT;
63
64
65
66
67 private String type = null;
68
69
70
71
72 private String nonProxyHosts;
73
74
75
76
77 private String ntlmHost;
78
79
80
81
82 private String ntlmDomain;
83
84
85
86
87
88
89 public String getHost()
90 {
91 return host;
92 }
93
94
95
96
97
98
99 public void setHost( final String host )
100 {
101 this.host = host;
102 }
103
104
105
106
107
108
109 public String getPassword()
110 {
111 return password;
112 }
113
114
115
116
117
118
119 public void setPassword( final String password )
120 {
121 this.password = password;
122 }
123
124
125
126
127
128
129 public int getPort()
130 {
131 return port;
132 }
133
134
135
136
137
138
139 public void setPort( final int port )
140 {
141 this.port = port;
142 }
143
144
145
146
147
148
149 public String getUserName()
150 {
151 return userName;
152 }
153
154
155
156
157
158
159 public void setUserName( final String userName )
160 {
161 this.userName = userName;
162 }
163
164
165
166
167
168
169 public String getType()
170 {
171 return type;
172 }
173
174
175
176
177 public void setType( final String type )
178 {
179 this.type = type;
180 }
181
182 public String getNonProxyHosts()
183 {
184 return nonProxyHosts;
185 }
186
187 public void setNonProxyHosts( String nonProxyHosts )
188 {
189 this.nonProxyHosts = nonProxyHosts;
190 }
191
192 public String getNtlmHost()
193 {
194 return ntlmHost;
195 }
196
197 public void setNtlmHost( String ntlmHost )
198 {
199 this.ntlmHost = ntlmHost;
200 }
201
202 public void setNtlmDomain( String ntlmDomain )
203 {
204 this.ntlmDomain = ntlmDomain;
205 }
206
207 public String getNtlmDomain()
208 {
209 return ntlmDomain;
210 }
211
212 @Override
213 public String toString()
214 {
215 return "ProxyInfo{" + "host='" + host + '\'' + ", userName='" + userName + '\'' + ", port=" + port + ", type='"
216 + type + '\'' + ", nonProxyHosts='" + nonProxyHosts + '\'' + '}';
217 }
218 }