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 information required to a server settings.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Server instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServer(Server.Builder builder) Constructor for this class, to be called from its subclasses andServer.Builder. -
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
getImportedFrom, getLocation, getLocationKeys, getLocationKeyStream, newBuilder, newBuilderMethods 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
-
Constructor Details
-
Server
Constructor for this class, to be called from its subclasses andServer.Builder.- See Also:
-
-
Method Details
-
getUsername
-
getPassword
The password used in conjunction with the username to authenticate.- Returns:
- a
String
-
getPrivateKey
-
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
-
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
-
withPassword
-
withPrivateKey
-
withPassphrase
-
withFilePermissions
-
withDirectoryPermissions
-
withConfiguration
-
newInstance
-
newInstance
-
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
-