Package org.apache.maven.api.settings
Class Server
java.lang.Object
org.apache.maven.api.settings.TrackableBase
org.apache.maven.api.settings.IdentifiableBase
org.apache.maven.api.settings.Server
- All Implemented Interfaces:
Serializable
,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Server
extends IdentifiableBase
implements Serializable, InputLocationTracker
The
<server>
element contains informations required to a server settings.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create Server instances. -
Field Summary
Fields inherited from class org.apache.maven.api.settings.TrackableBase
GLOBAL_LEVEL, PROJECT_LEVEL, USER_LEVEL
-
Method Summary
Modifier and TypeMethodDescriptionExtra configuration for the transport layer.The permissions for directories when they are created.The permissions for files when they are created.The passphrase used in conjunction with the privateKey to authenticate.The password used in conjunction with the username to authenticate.The private key location used to authenticate.The username used to authenticate.static Server.Builder
Creates a newServer
builder instance.static Server.Builder
newBuilder
(boolean withDefaults) Creates a newServer
builder instance using default values or not.static Server.Builder
newBuilder
(Server from) Creates a newServer
builder instance using the specified object as a basis.static Server.Builder
newBuilder
(Server from, boolean forceCopy) Creates a newServer
builder instance using the specified object as a basis.static Server
Creates a newServer
instance.static Server
newInstance
(boolean withDefaults) Creates a newServer
instance using default values or not.with()
Creates a new builder with this object as the basis.withConfiguration
(XmlNode configuration) Creates a newServer
instance using the specified configuration.withDirectoryPermissions
(String directoryPermissions) Creates a newServer
instance using the specified directoryPermissions.withFilePermissions
(String filePermissions) Creates a newServer
instance using the specified filePermissions.Creates a newServer
instance using the specified id.withPassphrase
(String passphrase) Creates a newServer
instance using the specified passphrase.withPassword
(String password) Creates a newServer
instance using the specified password.withPrivateKey
(String privateKey) Creates a newServer
instance using the specified privateKey.withUsername
(String username) Creates a newServer
instance using the specified username.Methods inherited from class org.apache.maven.api.settings.IdentifiableBase
getId, newBuilder, newBuilder
Methods inherited from class org.apache.maven.api.settings.TrackableBase
getLocation, getSourceLevel, newBuilder, newBuilder, setSourceLevel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.api.settings.InputLocationTracker
getLocation
-
Method Details
-
getUsername
The username used to authenticate.- Returns:
- a
String
-
getPassword
The password used in conjunction with the username to authenticate.- Returns:
- a
String
-
getPrivateKey
The private key location used to authenticate.- Returns:
- a
String
-
getPassphrase
The passphrase used in conjunction with the privateKey to authenticate.- Returns:
- a
String
-
getFilePermissions
The permissions for files when they are created.- Returns:
- a
String
-
getDirectoryPermissions
The permissions for directories when they are created.- Returns:
- a
String
-
getConfiguration
Extra configuration for the transport layer.- Returns:
- a
XmlNode
-
with
Creates a new builder with this object as the basis.- Overrides:
with
in classIdentifiableBase
- Returns:
- a
Builder
-
withId
Creates a newServer
instance using the specified id.- Overrides:
withId
in classIdentifiableBase
- Parameters:
id
- the newString
to use- Returns:
- a
Server
with the specified id
-
withUsername
Creates a newServer
instance using the specified username.- Parameters:
username
- the newString
to use- Returns:
- a
Server
with the specified username
-
withPassword
Creates a newServer
instance using the specified password.- Parameters:
password
- the newString
to use- Returns:
- a
Server
with the specified password
-
withPrivateKey
Creates a newServer
instance using the specified privateKey.- Parameters:
privateKey
- the newString
to use- Returns:
- a
Server
with the specified privateKey
-
withPassphrase
Creates a newServer
instance using the specified passphrase.- Parameters:
passphrase
- the newString
to use- Returns:
- a
Server
with the specified passphrase
-
withFilePermissions
Creates a newServer
instance using the specified filePermissions.- Parameters:
filePermissions
- the newString
to use- Returns:
- a
Server
with the specified filePermissions
-
withDirectoryPermissions
Creates a newServer
instance using the specified directoryPermissions.- Parameters:
directoryPermissions
- the newString
to use- Returns:
- a
Server
with the specified directoryPermissions
-
withConfiguration
Creates a newServer
instance using the specified configuration.- Parameters:
configuration
- the newXmlNode
to use- Returns:
- a
Server
with the specified configuration
-
newInstance
Creates a newServer
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
Server
- See Also:
-
newInstance
Creates a newServer
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Server
-
newBuilder
Creates a newServer
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newServer
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newServer
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theServer
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newServer
builder instance using the specified object as a basis.- Parameters:
from
- theServer
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-