Package org.apache.sshd.sftp.client.fs
Class SftpFileSystemInitializationContext
java.lang.Object
org.apache.sshd.sftp.client.fs.SftpFileSystemInitializationContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BasicCredentialsProviderprivate Stringprivate final Stringprivate Durationprivate Durationprivate intprivate PropertyResolverprivate final URI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()getId()intgetPort()getUri()voidsetCredentials(BasicCredentialsProvider credentials) voidvoidsetMaxAuthTime(Duration maxAuthTime) voidsetMaxConnectTime(Duration maxConnectTime) voidsetPort(int port) voidsetPropertyResolver(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 originalURIthat 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
URIthat 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
PropertyResolverfor 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
-