Class SftpFileSystemInitializationContext

java.lang.Object
org.apache.sshd.sftp.client.fs.SftpFileSystemInitializationContext

public class SftpFileSystemInitializationContext extends Object
  • Field Details

  • Constructor Details

    • SftpFileSystemInitializationContext

      public SftpFileSystemInitializationContext(String id, URI uri, Map<String,?> env)
      Parameters:
      id - The unique identifier assigned to the file-system being created
      uri - The original URI that triggered the file-system creation
      env - The environment settings passed along with the URI (may be null)
  • Method Details

    • getId

      public String getId()
      Returns:
      The unique identifier assigned to the file-system being created
    • getUri

      public URI getUri()
      Returns:
      The original URI that triggered the file-system creation
    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object