View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.8.1,
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       *             
87       *           
88       */
89      private String nonProxyHosts;
90  
91  
92        //-----------/
93       //- Methods -/
94      //-----------/
95  
96      /**
97       * Method clone.
98       * 
99       * @return Proxy
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     } //-- Proxy clone()
115 
116     /**
117      * Get the proxy host.
118      * 
119      * @return String
120      */
121     public String getHost()
122     {
123         return this.host;
124     } //-- String getHost()
125 
126     /**
127      * Get the list of non-proxied hosts (delimited by |).
128      * 
129      * @return String
130      */
131     public String getNonProxyHosts()
132     {
133         return this.nonProxyHosts;
134     } //-- String getNonProxyHosts()
135 
136     /**
137      * Get the proxy password.
138      * 
139      * @return String
140      */
141     public String getPassword()
142     {
143         return this.password;
144     } //-- String getPassword()
145 
146     /**
147      * Get the proxy port.
148      * 
149      * @return int
150      */
151     public int getPort()
152     {
153         return this.port;
154     } //-- int getPort()
155 
156     /**
157      * Get the proxy protocol.
158      * 
159      * @return String
160      */
161     public String getProtocol()
162     {
163         return this.protocol;
164     } //-- String getProtocol()
165 
166     /**
167      * Get the proxy user.
168      * 
169      * @return String
170      */
171     public String getUsername()
172     {
173         return this.username;
174     } //-- String getUsername()
175 
176     /**
177      * Get whether this proxy configuration is the active one.
178      * 
179      * @return boolean
180      */
181     public boolean isActive()
182     {
183         return this.active;
184     } //-- boolean isActive()
185 
186     /**
187      * Set whether this proxy configuration is the active one.
188      * 
189      * @param active
190      */
191     public void setActive( boolean active )
192     {
193         this.active = active;
194     } //-- void setActive( boolean )
195 
196     /**
197      * Set the proxy host.
198      * 
199      * @param host
200      */
201     public void setHost( String host )
202     {
203         this.host = host;
204     } //-- void setHost( String )
205 
206     /**
207      * Set the list of non-proxied hosts (delimited by |).
208      * 
209      * @param nonProxyHosts
210      */
211     public void setNonProxyHosts( String nonProxyHosts )
212     {
213         this.nonProxyHosts = nonProxyHosts;
214     } //-- void setNonProxyHosts( String )
215 
216     /**
217      * Set the proxy password.
218      * 
219      * @param password
220      */
221     public void setPassword( String password )
222     {
223         this.password = password;
224     } //-- void setPassword( String )
225 
226     /**
227      * Set the proxy port.
228      * 
229      * @param port
230      */
231     public void setPort( int port )
232     {
233         this.port = port;
234     } //-- void setPort( int )
235 
236     /**
237      * Set the proxy protocol.
238      * 
239      * @param protocol
240      */
241     public void setProtocol( String protocol )
242     {
243         this.protocol = protocol;
244     } //-- void setProtocol( String )
245 
246     /**
247      * Set the proxy user.
248      * 
249      * @param username
250      */
251     public void setUsername( String username )
252     {
253         this.username = username;
254     } //-- void setUsername( String )
255 
256 }