@Experimental @Generated @ThreadSafe @Immutable public class Server extends IdentifiableBase implements Serializable
<server>
element contains informations required to a server settings.Modifier and Type | Class and Description |
---|---|
static class |
Server.Builder
Builder class used to create Server instances.
|
GLOBAL_LEVEL, USER_LEVEL
Modifier and Type | Method and Description |
---|---|
Dom |
getConfiguration()
Extra configuration for the transport layer.
|
String |
getDirectoryPermissions()
The permissions for directories when they are created.
|
String |
getFilePermissions()
The permissions for files when they are created.
|
String |
getPassphrase()
The passphrase used in conjunction with the privateKey to authenticate.
|
String |
getPassword()
The password used in conjunction with the username to authenticate.
|
String |
getPrivateKey()
The private key location used to authenticate.
|
String |
getUsername()
The username used to authenticate.
|
static Server.Builder |
newBuilder()
Creates a new
Server builder instance. |
static Server.Builder |
newBuilder(boolean withDefaults)
Creates a new
Server builder instance using default values or not. |
static Server.Builder |
newBuilder(Server from)
Creates a new
Server builder instance using the specified object as a basis. |
static Server.Builder |
newBuilder(Server from,
boolean forceCopy)
Creates a new
Server builder instance using the specified object as a basis. |
static Server |
newInstance()
Creates a new
Server instance. |
static Server |
newInstance(boolean withDefaults)
Creates a new
Server instance using default values or not. |
Server.Builder |
with()
Creates a new builder with this object as the basis.
|
Server |
withConfiguration(Dom configuration)
Creates a new
Server instance using the specified configuration. |
Server |
withDirectoryPermissions(String directoryPermissions)
Creates a new
Server instance using the specified directoryPermissions. |
Server |
withFilePermissions(String filePermissions)
Creates a new
Server instance using the specified filePermissions. |
Server |
withId(String id)
Creates a new
Server instance using the specified id. |
Server |
withPassphrase(String passphrase)
Creates a new
Server instance using the specified passphrase. |
Server |
withPassword(String password)
Creates a new
Server instance using the specified password. |
Server |
withPrivateKey(String privateKey)
Creates a new
Server instance using the specified privateKey. |
Server |
withUsername(String username)
Creates a new
Server instance using the specified username. |
getId, newBuilder, newBuilder
getSourceLevel, newBuilder, newBuilder, setSourceLevel
public String getUsername()
String
public String getPassword()
String
public String getPrivateKey()
String
public String getPassphrase()
String
public String getFilePermissions()
String
public String getDirectoryPermissions()
String
public Dom getConfiguration()
Dom
@Nonnull public Server.Builder with()
with
in class IdentifiableBase
Builder
@Nonnull public Server withId(String id)
Server
instance using the specified id.withId
in class IdentifiableBase
id
- the new String
to useServer
with the specified id@Nonnull public Server withUsername(String username)
Server
instance using the specified username.username
- the new String
to useServer
with the specified username@Nonnull public Server withPassword(String password)
Server
instance using the specified password.password
- the new String
to useServer
with the specified password@Nonnull public Server withPrivateKey(String privateKey)
Server
instance using the specified privateKey.privateKey
- the new String
to useServer
with the specified privateKey@Nonnull public Server withPassphrase(String passphrase)
Server
instance using the specified passphrase.passphrase
- the new String
to useServer
with the specified passphrase@Nonnull public Server withFilePermissions(String filePermissions)
Server
instance using the specified filePermissions.filePermissions
- the new String
to useServer
with the specified filePermissions@Nonnull public Server withDirectoryPermissions(String directoryPermissions)
Server
instance using the specified directoryPermissions.directoryPermissions
- the new String
to useServer
with the specified directoryPermissions@Nonnull public Server withConfiguration(Dom configuration)
Server
instance using the specified configuration.configuration
- the new Dom
to useServer
with the specified configuration@Nonnull public static Server newInstance()
Server
instance.
Equivalent to newInstance( true )
.Server
newInstance(boolean)
@Nonnull public static Server newInstance(boolean withDefaults)
Server
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedServer
@Nonnull public static Server.Builder newBuilder()
Server
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static Server.Builder newBuilder(boolean withDefaults)
Server
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static Server.Builder newBuilder(Server from)
Server
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the Server
instance to use as a basisBuilder
@Nonnull public static Server.Builder newBuilder(Server from, boolean forceCopy)
Server
builder instance using the specified object as a basis.from
- the Server
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.