org.apache.archiva.configuration.NetworkProxyConfiguration Maven / Gradle / Ivy
The newest version!
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 1.7,
// any modifications will be overwritten.
// ==============================================================
package org.apache.archiva.configuration;
/**
* Class NetworkProxyConfiguration.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class NetworkProxyConfiguration
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
*
* The ID for this proxy.
*
*/
private String id;
/**
*
* The network protocol to use with this proxy:
* "http", "socks-4"
* .
*/
private String protocol = "http";
/**
*
* The proxy host.
*
*/
private String host;
/**
*
* The proxy port.
*
*/
private int port = 8080;
/**
*
* The proxy user.
*
*/
private String username;
/**
*
* The proxy password.
*
*/
private String password;
/**
*
* Use ntlm authentification.
*
*/
private boolean useNtlm = false;
//-----------/
//- Methods -/
//-----------/
/**
* Get the proxy host.
*
* @return String
*/
public String getHost()
{
return this.host;
} //-- String getHost()
/**
* Get the ID for this proxy.
*
* @return String
*/
public String getId()
{
return this.id;
} //-- String getId()
/**
* 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 network protocol to use with this proxy: "http",
* "socks-4".
*
* @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 use ntlm authentification.
*
* @return boolean
*/
public boolean isUseNtlm()
{
return this.useNtlm;
} //-- boolean isUseNtlm()
/**
* Set the proxy host.
*
* @param host
*/
public void setHost( String host )
{
this.host = host;
} //-- void setHost( String )
/**
* Set the ID for this proxy.
*
* @param id
*/
public void setId( String id )
{
this.id = id;
} //-- void setId( 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 network protocol to use with this proxy: "http",
* "socks-4".
*
* @param protocol
*/
public void setProtocol( String protocol )
{
this.protocol = protocol;
} //-- void setProtocol( String )
/**
* Set use ntlm authentification.
*
* @param useNtlm
*/
public void setUseNtlm( boolean useNtlm )
{
this.useNtlm = useNtlm;
} //-- void setUseNtlm( boolean )
/**
* Set the proxy user.
*
* @param username
*/
public void setUsername( String username )
{
this.username = username;
} //-- void setUsername( String )
public int hashCode()
{
int result = 17;
result = 37 * result + ( id != null ? id.hashCode() : 0 );
return result;
}
public boolean equals( Object other )
{
if ( this == other )
{
return true;
}
if ( !( other instanceof NetworkProxyConfiguration ) )
{
return false;
}
NetworkProxyConfiguration that = (NetworkProxyConfiguration) other;
boolean result = true;
result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy