Top Description Methods
org.apache.sshd.common.file

public Interface FileSystemAware

Annotations
@FunctionalInterface
Imports
java.io.IOException, java.nio.file.FileSystem, org.apache.sshd.common.session.SessionContext

Interface that can be implemented by a command to be able to access the file system in which this command will be used.

Method Summary

Modifier and TypeMethod and Description
public void
setFileSystem(FileSystem
the file system
fileSystem
)

Set the file system in which this shell will be executed.

public default void
setFileSystemFactory(FileSystemFactory
The factory instance
factory
,
SessionContext session)

Sets the FileSystemFactory used to create the FileSystem to be used by the session

Method Detail

setFileSystemback to summary
public void setFileSystem(FileSystem fileSystem)

Set the file system in which this shell will be executed.

Parameters
fileSystem:FileSystem

the file system

setFileSystemFactoryback to summary
public default void setFileSystemFactory(FileSystemFactory factory, SessionContext session) throws IOException

Sets the FileSystemFactory used to create the FileSystem to be used by the session

Parameters
factory:FileSystemFactory

The factory instance

session:SessionContext

The SessionContext

Exceptions
IOException:
If failed to resolve/create the file system
See Also
setFileSystem(FileSystem)