Package org.apache.sshd.common.file
Interface FileSystemAware
- All Known Implementing Classes:
AbstractFileSystemCommand,ScpCommand,ScpShell,SftpSubsystem
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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 TypeMethodDescriptionvoidsetFileSystem(FileSystem fileSystem) Set the file system in which this shell will be executed.default voidsetFileSystemFactory(FileSystemFactory factory, SessionContext session) Sets theFileSystemFactoryused to create theFileSystemto be used by the session
-
Method Details
-
setFileSystemFactory
default void setFileSystemFactory(FileSystemFactory factory, SessionContext session) throws IOException Sets theFileSystemFactoryused to create theFileSystemto be used by the session- Parameters:
factory- The factory instancesession- TheSessionContext- Throws:
IOException- If failed to resolve/create the file system- See Also:
-
setFileSystem
Set the file system in which this shell will be executed.- Parameters:
fileSystem- the file system
-