Package org.apache.maven.settings
Class Server
- java.lang.Object
-
- org.apache.maven.settings.TrackableBase
-
- org.apache.maven.settings.IdentifiableBase
-
- org.apache.maven.settings.Server
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class Server extends IdentifiableBase implements java.io.Serializable, java.lang.Cloneable
The<server>element contains informations required to a server settings.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ObjectconfigurationExtra configuration for the transport layer.private java.lang.StringdirectoryPermissionsThe permissions for directories when they are created.private java.lang.StringfilePermissionsThe permissions for files when they are created.private java.lang.StringpassphraseThe passphrase used in conjunction with the privateKey to authenticate.private java.lang.StringpasswordThe password used in conjunction with the username to authenticate.private java.lang.StringprivateKeyThe private key location used to authenticate.private java.lang.StringusernameThe username used to authenticate.-
Fields inherited from class org.apache.maven.settings.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
-
Constructor Summary
Constructors Constructor Description Server()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Serverclone()Method clone.java.lang.ObjectgetConfiguration()Get extra configuration for the transport layer.java.lang.StringgetDirectoryPermissions()Get the permissions for directories when they are created.java.lang.StringgetFilePermissions()Get the permissions for files when they are created.java.lang.StringgetPassphrase()Get the passphrase used in conjunction with the privateKey to authenticate.java.lang.StringgetPassword()Get the password used in conjunction with the username to authenticate.java.lang.StringgetPrivateKey()Get the private key location used to authenticate.java.lang.StringgetUsername()Get the username used to authenticate.voidsetConfiguration(java.lang.Object configuration)Set extra configuration for the transport layer.voidsetDirectoryPermissions(java.lang.String directoryPermissions)Set the permissions for directories when they are created.voidsetFilePermissions(java.lang.String filePermissions)Set the permissions for files when they are created.voidsetPassphrase(java.lang.String passphrase)Set the passphrase used in conjunction with the privateKey to authenticate.voidsetPassword(java.lang.String password)Set the password used in conjunction with the username to authenticate.voidsetPrivateKey(java.lang.String privateKey)Set the private key location used to authenticate.voidsetUsername(java.lang.String username)Set the username used to authenticate.-
Methods inherited from class org.apache.maven.settings.IdentifiableBase
getId, setId
-
Methods inherited from class org.apache.maven.settings.TrackableBase
getSourceLevel, setSourceLevel
-
-
-
-
Field Detail
-
username
private java.lang.String username
The username used to authenticate.
-
password
private java.lang.String password
The password used in conjunction with the username to authenticate.
-
privateKey
private java.lang.String privateKey
The private key location used to authenticate.
-
passphrase
private java.lang.String passphrase
The passphrase used in conjunction with the privateKey to authenticate.
-
filePermissions
private java.lang.String filePermissions
The permissions for files when they are created.
-
directoryPermissions
private java.lang.String directoryPermissions
The permissions for directories when they are created.
-
configuration
private java.lang.Object configuration
Extra configuration for the transport layer.
-
-
Method Detail
-
clone
public Server clone()
Method clone.- Overrides:
clonein classIdentifiableBase- Returns:
- Server
-
getConfiguration
public java.lang.Object getConfiguration()
Get extra configuration for the transport layer.- Returns:
- Object
-
getDirectoryPermissions
public java.lang.String getDirectoryPermissions()
Get the permissions for directories when they are created.- Returns:
- String
-
getFilePermissions
public java.lang.String getFilePermissions()
Get the permissions for files when they are created.- Returns:
- String
-
getPassphrase
public java.lang.String getPassphrase()
Get the passphrase used in conjunction with the privateKey to authenticate.- Returns:
- String
-
getPassword
public java.lang.String getPassword()
Get the password used in conjunction with the username to authenticate.- Returns:
- String
-
getPrivateKey
public java.lang.String getPrivateKey()
Get the private key location used to authenticate.- Returns:
- String
-
getUsername
public java.lang.String getUsername()
Get the username used to authenticate.- Returns:
- String
-
setConfiguration
public void setConfiguration(java.lang.Object configuration)
Set extra configuration for the transport layer.- Parameters:
configuration-
-
setDirectoryPermissions
public void setDirectoryPermissions(java.lang.String directoryPermissions)
Set the permissions for directories when they are created.- Parameters:
directoryPermissions-
-
setFilePermissions
public void setFilePermissions(java.lang.String filePermissions)
Set the permissions for files when they are created.- Parameters:
filePermissions-
-
setPassphrase
public void setPassphrase(java.lang.String passphrase)
Set the passphrase used in conjunction with the privateKey to authenticate.- Parameters:
passphrase-
-
setPassword
public void setPassword(java.lang.String password)
Set the password used in conjunction with the username to authenticate.- Parameters:
password-
-
setPrivateKey
public void setPrivateKey(java.lang.String privateKey)
Set the private key location used to authenticate.- Parameters:
privateKey-
-
setUsername
public void setUsername(java.lang.String username)
Set the username used to authenticate.- Parameters:
username-
-
-