Package org.apache.sshd.sftp.client.fs
Class SftpFileSystemInitializationContext
- java.lang.Object
-
- org.apache.sshd.sftp.client.fs.SftpFileSystemInitializationContext
-
public class SftpFileSystemInitializationContext extends Object
- Author:
- Apache MINA SSHD Project
-
-
Constructor Summary
Constructors Constructor Description SftpFileSystemInitializationContext(String id, URI uri, Map<String,?> env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicCredentialsProvidergetCredentials()Map<String,?>getEnvironment()StringgetHost()StringgetId()DurationgetMaxAuthTime()DurationgetMaxConnectTime()intgetPort()PropertyResolvergetPropertyResolver()URIgetUri()voidsetCredentials(BasicCredentialsProvider credentials)voidsetHost(String host)voidsetMaxAuthTime(Duration maxAuthTime)voidsetMaxConnectTime(Duration maxConnectTime)voidsetPort(int port)voidsetPropertyResolver(PropertyResolver propertyResolver)StringtoString()
-
-
-
Constructor Detail
-
SftpFileSystemInitializationContext
public SftpFileSystemInitializationContext(String id, URI uri, Map<String,?> env)
- 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 Detail
-
getId
public String getId()
- Returns:
- The unique identifier assigned to the file-system being created
-
getEnvironment
public Map<String,?> getEnvironment()
- Returns:
- The environment settings passed along with the URI (may be
null)
-
getHost
public String getHost()
-
setHost
public void setHost(String host)
-
getPort
public int getPort()
- Returns:
- The resolved target port from the URI
-
setPort
public void setPort(int port)
-
getCredentials
public BasicCredentialsProvider getCredentials()
- Returns:
- The credentials recovered from the URI
-
setCredentials
public void setCredentials(BasicCredentialsProvider credentials)
-
getPropertyResolver
public PropertyResolver getPropertyResolver()
- Returns:
- A
PropertyResolverfor easy access of any query parameters encoded in the URI
-
setPropertyResolver
public void setPropertyResolver(PropertyResolver propertyResolver)
-
getMaxConnectTime
public Duration getMaxConnectTime()
- Returns:
- The resolved max. connect timeout (msec.)
-
setMaxConnectTime
public void setMaxConnectTime(Duration maxConnectTime)
-
getMaxAuthTime
public Duration getMaxAuthTime()
- Returns:
- The resolved max. authentication timeout (msec.)
-
setMaxAuthTime
public void setMaxAuthTime(Duration maxAuthTime)
-
-