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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder 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.BuilderCreates a newServerbuilder instance.static Server.BuildernewBuilder(boolean withDefaults) Creates a newServerbuilder instance using default values or not.static Server.BuildernewBuilder(Server from) Creates a newServerbuilder instance using the specified object as a basis.static Server.BuildernewBuilder(Server from, boolean forceCopy) Creates a newServerbuilder instance using the specified object as a basis.static ServerCreates a newServerinstance.static ServernewInstance(boolean withDefaults) Creates a newServerinstance using default values or not.with()Creates a new builder with this object as the basis.withConfiguration(XmlNode configuration) Creates a newServerinstance using the specified configuration.withDirectoryPermissions(String directoryPermissions) Creates a newServerinstance using the specified directoryPermissions.withFilePermissions(String filePermissions) Creates a newServerinstance using the specified filePermissions.Creates a newServerinstance using the specified id.withPassphrase(String passphrase) Creates a newServerinstance using the specified passphrase.withPassword(String password) Creates a newServerinstance using the specified password.withPrivateKey(String privateKey) Creates a newServerinstance using the specified privateKey.withUsername(String username) Creates a newServerinstance using the specified username.Methods inherited from class org.apache.maven.api.settings.IdentifiableBase
getId, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.settings.TrackableBase
getLocation, getSourceLevel, newBuilder, newBuilder, setSourceLevelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
within classIdentifiableBase- Returns:
- a
Builder
-
withId
Creates a newServerinstance using the specified id.- Overrides:
withIdin classIdentifiableBase- Parameters:
id- the newStringto use- Returns:
- a
Serverwith the specified id
-
withUsername
Creates a newServerinstance using the specified username.- Parameters:
username- the newStringto use- Returns:
- a
Serverwith the specified username
-
withPassword
Creates a newServerinstance using the specified password.- Parameters:
password- the newStringto use- Returns:
- a
Serverwith the specified password
-
withPrivateKey
Creates a newServerinstance using the specified privateKey.- Parameters:
privateKey- the newStringto use- Returns:
- a
Serverwith the specified privateKey
-
withPassphrase
Creates a newServerinstance using the specified passphrase.- Parameters:
passphrase- the newStringto use- Returns:
- a
Serverwith the specified passphrase
-
withFilePermissions
Creates a newServerinstance using the specified filePermissions.- Parameters:
filePermissions- the newStringto use- Returns:
- a
Serverwith the specified filePermissions
-
withDirectoryPermissions
Creates a newServerinstance using the specified directoryPermissions.- Parameters:
directoryPermissions- the newStringto use- Returns:
- a
Serverwith the specified directoryPermissions
-
withConfiguration
Creates a newServerinstance using the specified configuration.- Parameters:
configuration- the newXmlNodeto use- Returns:
- a
Serverwith the specified configuration
-
newInstance
Creates a newServerinstance. Equivalent tonewInstance(true).- Returns:
- a new
Server - See Also:
-
newInstance
Creates a newServerinstance 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 newServerbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newServerbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newServerbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theServerinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newServerbuilder instance using the specified object as a basis.- Parameters:
from- theServerinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-