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 information required to a server settings.- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Server instances.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedServer(Server.Builder builder) Constructor for this class, to be called from its subclasses andServer.Builder.
- 
Method SummaryModifier 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.IdentifiableBasegetId, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.settings.TrackableBasegetImportedFrom, getLocation, getLocationKeys, getLocationKeyStream, newBuilder, newBuilderMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.settings.InputLocationTrackergetLocation
- 
Constructor Details- 
ServerConstructor for this class, to be called from its subclasses andServer.Builder.- See Also:
 
 
- 
- 
Method Details- 
getUsernameThe username used to authenticate.- Returns:
- a String
 
- 
getPasswordThe password used in conjunction with the username to authenticate.- Returns:
- a String
 
- 
getPrivateKeyThe private key location used to authenticate.- Returns:
- a String
 
- 
getPassphraseThe passphrase used in conjunction with the privateKey to authenticate.- Returns:
- a String
 
- 
getFilePermissionsThe permissions for files when they are created.- Returns:
- a String
 
- 
getDirectoryPermissionsThe permissions for directories when they are created.- Returns:
- a String
 
- 
getConfigurationExtra configuration for the transport layer.- Returns:
- a XmlNode
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- IdentifiableBase
- Returns:
- a Builder
 
- 
withIdCreates a newServerinstance using the specified id.- Overrides:
- withIdin class- IdentifiableBase
- Parameters:
- id- the new- Stringto use
- Returns:
- a Serverwith the specified id
 
- 
withUsernameCreates a newServerinstance using the specified username.- Parameters:
- username- the new- Stringto use
- Returns:
- a Serverwith the specified username
 
- 
withPasswordCreates a newServerinstance using the specified password.- Parameters:
- password- the new- Stringto use
- Returns:
- a Serverwith the specified password
 
- 
withPrivateKeyCreates a newServerinstance using the specified privateKey.- Parameters:
- privateKey- the new- Stringto use
- Returns:
- a Serverwith the specified privateKey
 
- 
withPassphraseCreates a newServerinstance using the specified passphrase.- Parameters:
- passphrase- the new- Stringto use
- Returns:
- a Serverwith the specified passphrase
 
- 
withFilePermissionsCreates a newServerinstance using the specified filePermissions.- Parameters:
- filePermissions- the new- Stringto use
- Returns:
- a Serverwith the specified filePermissions
 
- 
withDirectoryPermissionsCreates a newServerinstance using the specified directoryPermissions.- Parameters:
- directoryPermissions- the new- Stringto use
- Returns:
- a Serverwith the specified directoryPermissions
 
- 
withConfigurationCreates a newServerinstance using the specified configuration.- Parameters:
- configuration- the new- XmlNodeto use
- Returns:
- a Serverwith the specified configuration
 
- 
newInstanceCreates a newServerinstance. Equivalent tonewInstance(true).- Returns:
- a new Server
- See Also:
 
- 
newInstanceCreates 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
 
- 
newBuilderCreates a newServerbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newServerbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newServerbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- Serverinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newServerbuilder instance using the specified object as a basis.- Parameters:
- from- the- Serverinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-