001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 1.8.1,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.apache.maven.settings;
007
008/**
009 * 
010 *         
011 *         The <code>&lt;proxy&gt;</code> element contains
012 * informations required to a proxy settings.
013 *         
014 * 
015 * @version $Revision$ $Date$
016 */
017@SuppressWarnings( "all" )
018public class Proxy
019    extends IdentifiableBase
020    implements java.io.Serializable, java.lang.Cloneable
021{
022
023      //--------------------------/
024     //- Class/Member Variables -/
025    //--------------------------/
026
027    /**
028     * 
029     *             
030     *             Whether this proxy configuration is the active
031     * one.
032     *             
033     *           
034     */
035    private boolean active = true;
036
037    /**
038     * 
039     *             
040     *             The proxy protocol.
041     *             
042     *           
043     */
044    private String protocol = "http";
045
046    /**
047     * 
048     *             
049     *             The proxy user.
050     *             
051     *           
052     */
053    private String username;
054
055    /**
056     * 
057     *             
058     *             The proxy password.
059     *             
060     *           
061     */
062    private String password;
063
064    /**
065     * 
066     *             
067     *             The proxy port.
068     *             
069     *           
070     */
071    private int port = 8080;
072
073    /**
074     * 
075     *             
076     *             The proxy host.
077     *             
078     *           
079     */
080    private String host;
081
082    /**
083     * 
084     *             
085     *             The list of non-proxied hosts (delimited by |).
086     *             
087     *           
088     */
089    private String nonProxyHosts;
090
091
092      //-----------/
093     //- Methods -/
094    //-----------/
095
096    /**
097     * Method clone.
098     * 
099     * @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}