Class NoneFileSystemFactory
- java.lang.Object
-
- org.apache.sshd.common.file.nonefs.NoneFileSystemFactory
-
- All Implemented Interfaces:
FileSystemFactory
public class NoneFileSystemFactory extends Object implements FileSystemFactory
Provides an "empty" file system that has no files/folders and throws exceptions on any attempt to access a file/folder on it- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static NoneFileSystemFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description NoneFileSystemFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSystem
createFileSystem(SessionContext session)
Create user specific file system.Path
getUserHomeDir(SessionContext session)
-
-
-
Field Detail
-
INSTANCE
public static final NoneFileSystemFactory INSTANCE
-
-
Method Detail
-
getUserHomeDir
public Path getUserHomeDir(SessionContext session) throws IOException
- Specified by:
getUserHomeDir
in interfaceFileSystemFactory
- Parameters:
session
- The session created for the user- Returns:
- The recommended user home directory -
null
if none - Throws:
IOException
- If failed to resolve user's home directory
-
createFileSystem
public FileSystem createFileSystem(SessionContext session) throws IOException
Description copied from interface:FileSystemFactory
Create user specific file system.- Specified by:
createFileSystem
in interfaceFileSystemFactory
- Parameters:
session
- The session created for the user- Returns:
- The current
FileSystem
for the provided session - Throws:
IOException
- if the file system can not be created
-
-