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.
@FunctionalInterface public interface FileSystemAware
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
setFileSystem(FileSystem fileSystem)
Set the file system in which this shell will be executed.default void
setFileSystemFactory(FileSystemFactory factory, SessionContext session)
Sets theFileSystemFactory
used to create theFileSystem
to be used by the session
-
-
-
Method Detail
-
setFileSystemFactory
default void setFileSystemFactory(FileSystemFactory factory, SessionContext session) throws IOException
Sets theFileSystemFactory
used to create theFileSystem
to be used by the session- Parameters:
factory
- The factory instancesession
- TheSessionContext
- Throws:
IOException
- If failed to resolve/create the file system- See Also:
setFileSystem(FileSystem)
-
setFileSystem
void setFileSystem(FileSystem fileSystem)
Set the file system in which this shell will be executed.- Parameters:
fileSystem
- the file system
-
-