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 BasicCredentialsProvider
getCredentials()
Map<String,?>
getEnvironment()
String
getHost()
String
getId()
Duration
getMaxAuthTime()
Duration
getMaxConnectTime()
int
getPort()
PropertyResolver
getPropertyResolver()
URI
getUri()
void
setCredentials(BasicCredentialsProvider credentials)
void
setHost(String host)
void
setMaxAuthTime(Duration maxAuthTime)
void
setMaxConnectTime(Duration maxConnectTime)
void
setPort(int port)
void
setPropertyResolver(PropertyResolver propertyResolver)
String
toString()
-
-
-
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 originalURI
that 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
PropertyResolver
for 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)
-
-