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