View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2013-02-24 03:31:03,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.settings;
9   
10  /**
11   * 
12   *         
13   *         The <code>&lt;proxy&gt;</code> element contains
14   * informations required to a proxy settings.
15   *         
16   * 
17   * @version $Revision$ $Date$
18   */
19  @SuppressWarnings( "all" )
20  public class Proxy
21      extends IdentifiableBase
22      implements java.io.Serializable, java.lang.Cloneable
23  {
24  
25        //--------------------------/
26       //- Class/Member Variables -/
27      //--------------------------/
28  
29      /**
30       * 
31       *             
32       *             Whether this proxy configuration is the active
33       * one.
34       *             
35       *           
36       */
37      private boolean active = true;
38  
39      /**
40       * 
41       *             
42       *             The proxy protocol.
43       *             
44       *           
45       */
46      private String protocol = "http";
47  
48      /**
49       * 
50       *             
51       *             The proxy user.
52       *             
53       *           
54       */
55      private String username;
56  
57      /**
58       * 
59       *             
60       *             The proxy password.
61       *             
62       *           
63       */
64      private String password;
65  
66      /**
67       * 
68       *             
69       *             The proxy port.
70       *             
71       *           
72       */
73      private int port = 8080;
74  
75      /**
76       * 
77       *             
78       *             The proxy host.
79       *             
80       *           
81       */
82      private String host;
83  
84      /**
85       * 
86       *             
87       *             The list of non-proxied hosts (delimited by |).
88       *             
89       *           
90       */
91      private String nonProxyHosts;
92  
93  
94        //-----------/
95       //- Methods -/
96      //-----------/
97  
98      /**
99       * Method clone.
100      * 
101      * @return Proxy
102      */
103     public Proxy clone()
104     {
105         try
106         {
107             Proxy copy = (Proxy) super.clone();
108 
109             return copy;
110         }
111         catch ( java.lang.Exception ex )
112         {
113             throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
114                 + " does not support clone()" ).initCause( ex );
115         }
116     } //-- Proxy clone()
117 
118     /**
119      * Get the proxy host.
120      * 
121      * @return String
122      */
123     public String getHost()
124     {
125         return this.host;
126     } //-- String getHost()
127 
128     /**
129      * Get the list of non-proxied hosts (delimited by |).
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
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
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      * 
211      * @param nonProxyHosts
212      */
213     public void setNonProxyHosts( String nonProxyHosts )
214     {
215         this.nonProxyHosts = nonProxyHosts;
216     } //-- void setNonProxyHosts( String )
217 
218     /**
219      * Set the proxy password.
220      * 
221      * @param password
222      */
223     public void setPassword( String password )
224     {
225         this.password = password;
226     } //-- void setPassword( String )
227 
228     /**
229      * Set the proxy port.
230      * 
231      * @param port
232      */
233     public void setPort( int port )
234     {
235         this.port = port;
236     } //-- void setPort( int )
237 
238     /**
239      * Set the proxy protocol.
240      * 
241      * @param protocol
242      */
243     public void setProtocol( String protocol )
244     {
245         this.protocol = protocol;
246     } //-- void setProtocol( String )
247 
248     /**
249      * Set the proxy user.
250      * 
251      * @param username
252      */
253     public void setUsername( String username )
254     {
255         this.username = username;
256     } //-- void setUsername( String )
257 
258 }