org.apache.maven.settings.Server Maven / Gradle / Ivy
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 2.1.2,
// any modifications will be overwritten.
// ==============================================================
package org.apache.maven.settings;
/**
*
*
* The <server>
element contains
* informations required to a server settings.
*
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class Server
extends IdentifiableBase
implements java.io.Serializable, java.lang.Cloneable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
*
*
* The username used to authenticate.
*
*
*/
private String username;
/**
*
*
* The password used in conjunction with the
* username to authenticate.
*
*
*/
private String password;
/**
*
*
* The private key location used to authenticate.
*
*
*/
private String privateKey;
/**
*
*
* The passphrase used in conjunction with the
* privateKey to authenticate.
*
*
*/
private String passphrase;
/**
*
*
* The permissions for files when they are created.
*
*
*/
private String filePermissions;
/**
*
*
* The permissions for directories when they are
* created.
*
*
*/
private String directoryPermissions;
/**
*
*
* Extra configuration for the transport layer.
*
*
*/
private Object configuration;
//-----------/
//- Methods -/
//-----------/
/**
* Method clone.
*
* @return Server
*/
public Server clone()
{
try
{
Server copy = (Server) super.clone();
if ( this.configuration != null )
{
copy.configuration = new org.codehaus.plexus.util.xml.Xpp3Dom( (org.codehaus.plexus.util.xml.Xpp3Dom) this.configuration );
}
return copy;
}
catch ( java.lang.Exception ex )
{
throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
+ " does not support clone()" ).initCause( ex );
}
} //-- Server clone()
/**
* Get extra configuration for the transport layer.
*
* @return Object
*/
public Object getConfiguration()
{
return this.configuration;
} //-- Object getConfiguration()
/**
* Get the permissions for directories when they are created.
*
* @return String
*/
public String getDirectoryPermissions()
{
return this.directoryPermissions;
} //-- String getDirectoryPermissions()
/**
* Get the permissions for files when they are created.
*
* @return String
*/
public String getFilePermissions()
{
return this.filePermissions;
} //-- String getFilePermissions()
/**
* Get the passphrase used in conjunction with the privateKey
* to authenticate.
*
* @return String
*/
public String getPassphrase()
{
return this.passphrase;
} //-- String getPassphrase()
/**
* Get the password used in conjunction with the username to
* authenticate.
*
* @return String
*/
public String getPassword()
{
return this.password;
} //-- String getPassword()
/**
* Get the private key location used to authenticate.
*
* @return String
*/
public String getPrivateKey()
{
return this.privateKey;
} //-- String getPrivateKey()
/**
* Get the username used to authenticate.
*
* @return String
*/
public String getUsername()
{
return this.username;
} //-- String getUsername()
/**
* Set extra configuration for the transport layer.
*
* @param configuration a configuration object.
*/
public void setConfiguration( Object configuration )
{
this.configuration = configuration;
} //-- void setConfiguration( Object )
/**
* Set the permissions for directories when they are created.
*
* @param directoryPermissions a directoryPermissions object.
*/
public void setDirectoryPermissions( String directoryPermissions )
{
this.directoryPermissions = directoryPermissions;
} //-- void setDirectoryPermissions( String )
/**
* Set the permissions for files when they are created.
*
* @param filePermissions a filePermissions object.
*/
public void setFilePermissions( String filePermissions )
{
this.filePermissions = filePermissions;
} //-- void setFilePermissions( String )
/**
* Set the passphrase used in conjunction with the privateKey
* to authenticate.
*
* @param passphrase a passphrase object.
*/
public void setPassphrase( String passphrase )
{
this.passphrase = passphrase;
} //-- void setPassphrase( String )
/**
* Set the password used in conjunction with the username to
* authenticate.
*
* @param password a password object.
*/
public void setPassword( String password )
{
this.password = password;
} //-- void setPassword( String )
/**
* Set the private key location used to authenticate.
*
* @param privateKey a privateKey object.
*/
public void setPrivateKey( String privateKey )
{
this.privateKey = privateKey;
} //-- void setPrivateKey( String )
/**
* Set the username used to authenticate.
*
* @param username a username object.
*/
public void setUsername( String username )
{
this.username = username;
} //-- void setUsername( String )
}