All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.maven.settings.Proxy Maven / Gradle / Ivy

The newest version!
/*
 =================== DO NOT EDIT THIS FILE ====================
 Generated by Modello 1.0.1 on 2009-08-06 15:13:31,
 any modifications will be overwritten.
 ==============================================================
 */

package org.apache.maven.settings;

/**
 * 
 *         
 *         The <proxy> element contains
 * informations required to a proxy settings.
 *         
 * 
 * @version $Revision$ $Date$
 */
public class Proxy
    extends IdentifiableBase
    implements java.io.Serializable
{

      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * 
     *             
     *             Whether this proxy configuration is the active
     * one.
     *             
     *           
     */
    private boolean active = true;

    /**
     * 
     *             
     *             The proxy protocol.
     *             
     *           
     */
    private String protocol = "http";

    /**
     * 
     *             
     *             The proxy user.
     *             
     *           
     */
    private String username;

    /**
     * 
     *             
     *             The proxy password.
     *             
     *           
     */
    private String password;

    /**
     * 
     *             
     *             The proxy port.
     *             
     *           
     */
    private int port = 8080;

    /**
     * 
     *             
     *             The proxy host.
     *             
     *           
     */
    private String host;

    /**
     * 
     *             
     *             The list of non-proxied hosts (delimited by |).
     *             
     *           
     */
    private String nonProxyHosts;


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Get the proxy host.
     * 
     * @return String
     */
    public String getHost()
    {
        return this.host;
    } //-- String getHost()

    /**
     * Get the list of non-proxied hosts (delimited by |).
     * 
     * @return String
     */
    public String getNonProxyHosts()
    {
        return this.nonProxyHosts;
    } //-- String getNonProxyHosts()

    /**
     * Get the proxy password.
     * 
     * @return String
     */
    public String getPassword()
    {
        return this.password;
    } //-- String getPassword()

    /**
     * Get the proxy port.
     * 
     * @return int
     */
    public int getPort()
    {
        return this.port;
    } //-- int getPort()

    /**
     * Get the proxy protocol.
     * 
     * @return String
     */
    public String getProtocol()
    {
        return this.protocol;
    } //-- String getProtocol()

    /**
     * Get the proxy user.
     * 
     * @return String
     */
    public String getUsername()
    {
        return this.username;
    } //-- String getUsername()

    /**
     * Get whether this proxy configuration is the active one.
     * 
     * @return boolean
     */
    public boolean isActive()
    {
        return this.active;
    } //-- boolean isActive()

    /**
     * Set whether this proxy configuration is the active one.
     * 
     * @param active
     */
    public void setActive( boolean active )
    {
        this.active = active;
    } //-- void setActive( boolean )

    /**
     * Set the proxy host.
     * 
     * @param host
     */
    public void setHost( String host )
    {
        this.host = host;
    } //-- void setHost( String )

    /**
     * Set the list of non-proxied hosts (delimited by |).
     * 
     * @param nonProxyHosts
     */
    public void setNonProxyHosts( String nonProxyHosts )
    {
        this.nonProxyHosts = nonProxyHosts;
    } //-- void setNonProxyHosts( String )

    /**
     * Set the proxy password.
     * 
     * @param password
     */
    public void setPassword( String password )
    {
        this.password = password;
    } //-- void setPassword( String )

    /**
     * Set the proxy port.
     * 
     * @param port
     */
    public void setPort( int port )
    {
        this.port = port;
    } //-- void setPort( int )

    /**
     * Set the proxy protocol.
     * 
     * @param protocol
     */
    public void setProtocol( String protocol )
    {
        this.protocol = protocol;
    } //-- void setProtocol( String )

    /**
     * Set the proxy user.
     * 
     * @param username
     */
    public void setUsername( String username )
    {
        this.username = username;
    } //-- void setUsername( String )


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy