Top Fields Constructors Methods
org.apache.sshd.sftp.client.fs

public Class SftpFileSystemInitializationContext

extends Object
Class Inheritance
Imports
java.net.URI, java.time.Duration, java.util.Map, org.apache.sshd.common.PropertyResolver, org.apache.sshd.common.auth.BasicCredentialsProvider

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private BasicCredentialsProvider
private final Map<String, ?>
private String
private final String
private Duration
private Duration
private int
private PropertyResolver
private final URI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public BasicCredentialsProvider

Returns:

The credentials recovered from the URI
getCredentials
()

public Map<String, ?>

Returns:

The environment settings passed along with the URI (may be null)
getEnvironment
()

public String
public String

Returns:

The unique identifier assigned to the file-system being created
getId
()

public Duration

Returns:

The resolved max. authentication timeout (msec.)
getMaxAuthTime
()

public Duration

Returns:

The resolved max. connect timeout (msec.)
getMaxConnectTime
()

public int

Returns:

The resolved target port from the URI
getPort
()

public PropertyResolver

Returns:

A PropertyResolver for easy access of any query parameters encoded in the URI
getPropertyResolver
()

public URI

Returns:

The original URI that triggered the file-system creation
getUri
()

public void
public void
public void
setMaxAuthTime(Duration maxAuthTime)

public void
setMaxConnectTime(Duration maxConnectTime)

public void
setPort(int port)

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

credentialsback to summary
private BasicCredentialsProvider credentials
environmentback to summary
private final Map<String, ?> environment
hostback to summary
private String host
idback to summary
private final String id
maxAuthTimeback to summary
private Duration maxAuthTime
maxConnectTimeback to summary
private Duration maxConnectTime
portback to summary
private int port
propertyResolverback to summary
private PropertyResolver propertyResolver
uriback to summary
private final URI uri

Constructor Detail

SftpFileSystemInitializationContextback to summary
public SftpFileSystemInitializationContext(String id, URI uri, Map<String, ?> env)
Parameters
id:String

The unique identifier assigned to the file-system being created

uri:URI

The original URI that triggered the file-system creation

env:Map<String, ?>

The environment settings passed along with the URI (may be null)

Method Detail

getCredentialsback to summary
public BasicCredentialsProvider getCredentials()
Returns:BasicCredentialsProvider

The credentials recovered from the URI

getEnvironmentback to summary
public Map<String, ?> getEnvironment()
Returns:Map<String, ?>

The environment settings passed along with the URI (may be null)

getHostback to summary
public String getHost()
getIdback to summary
public String getId()
Returns:String

The unique identifier assigned to the file-system being created

getMaxAuthTimeback to summary
public Duration getMaxAuthTime()
Returns:Duration

The resolved max. authentication timeout (msec.)

getMaxConnectTimeback to summary
public Duration getMaxConnectTime()
Returns:Duration

The resolved max. connect timeout (msec.)

getPortback to summary
public int getPort()
Returns:int

The resolved target port from the URI

getPropertyResolverback to summary
public PropertyResolver getPropertyResolver()
Returns:PropertyResolver

A PropertyResolver for easy access of any query parameters encoded in the URI

getUriback to summary
public URI getUri()
Returns:URI

The original URI that triggered the file-system creation

setCredentialsback to summary
public void setCredentials(BasicCredentialsProvider credentials)
setHostback to summary
public void setHost(String host)
setMaxAuthTimeback to summary
public void setMaxAuthTime(Duration maxAuthTime)
setMaxConnectTimeback to summary
public void setMaxConnectTime(Duration maxConnectTime)
setPortback to summary
public void setPort(int port)
setPropertyResolverback to summary
public void setPropertyResolver(PropertyResolver propertyResolver)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override