Package org.apache.sshd.sftp.client.fs
Class SftpFileSystemInitializationContext
java.lang.Object
org.apache.sshd.sftp.client.fs.SftpFileSystemInitializationContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BasicCredentialsProvider
private String
private final String
private Duration
private Duration
private int
private PropertyResolver
private final URI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()
getId()
int
getPort()
getUri()
void
setCredentials
(BasicCredentialsProvider credentials) void
void
setMaxAuthTime
(Duration maxAuthTime) void
setMaxConnectTime
(Duration maxConnectTime) void
setPort
(int port) void
setPropertyResolver
(PropertyResolver propertyResolver) toString()
-
Field Details
-
id
-
uri
-
environment
-
host
-
port
private int port -
credentials
-
propertyResolver
-
maxConnectTime
-
maxAuthTime
-
-
Constructor Details
-
SftpFileSystemInitializationContext
- Parameters:
id
- The unique identifier assigned to the file-system being createduri
- The originalURI
that triggered the file-system creationenv
- The environment settings passed along with the URI (may benull
)
-
-
Method Details
-
getId
- Returns:
- The unique identifier assigned to the file-system being created
-
getUri
- Returns:
- The original
URI
that triggered the file-system creation
-
getEnvironment
- Returns:
- The environment settings passed along with the URI (may be
null
)
-
getHost
-
setHost
-
getPort
public int getPort()- Returns:
- The resolved target port from the URI
-
setPort
public void setPort(int port) -
getCredentials
- Returns:
- The credentials recovered from the URI
-
setCredentials
-
getPropertyResolver
- Returns:
- A
PropertyResolver
for easy access of any query parameters encoded in the URI
-
setPropertyResolver
-
getMaxConnectTime
- Returns:
- The resolved max. connect timeout (msec.)
-
setMaxConnectTime
-
getMaxAuthTime
- Returns:
- The resolved max. authentication timeout (msec.)
-
setMaxAuthTime
-
toString
-