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