Top Description Fields Constructors Methods
org.apache.sshd.common.file.nonefs

public Class NoneFileSystemFactory

extends Object
implements FileSystemFactory
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.file.FileSystemFactory
Imports
java.io.IOException, java.nio.file.FileSystem, .Path, org.apache.sshd.common.file.FileSystemFactory, org.apache.sshd.common.session.SessionContext

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

Modifier and TypeField and Description
public static final NoneFileSystemFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public FileSystem
createFileSystem(SessionContext
The session created for the user
session
)

Implements org.apache.sshd.common.file.FileSystemFactory.createFileSystem.

Create user specific file system.

public Path
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final NoneFileSystemFactory INSTANCE

Constructor Detail

NoneFileSystemFactoryback to summary
public NoneFileSystemFactory()

Method Detail

createFileSystemback to summary
public FileSystem createFileSystem(SessionContext session) throws IOException

Implements org.apache.sshd.common.file.FileSystemFactory.createFileSystem.

Doc from org.apache.sshd.common.file.FileSystemFactory.createFileSystem.

Create user specific file system.

Parameters
session:SessionContext

The session created for the user

Returns:FileSystem

The current FileSystem for the provided session

Annotations
@Override
Exceptions
IOException:
if the file system can not be created
getUserHomeDirback to summary
public Path getUserHomeDir(SessionContext session) throws IOException

Implements org.apache.sshd.common.file.FileSystemFactory.getUserHomeDir.

Parameters
session:SessionContext

Doc from org.apache.sshd.common.file.FileSystemFactory.getUserHomeDir.

The session created for the user

Returns:Path

Doc from org.apache.sshd.common.file.FileSystemFactory.getUserHomeDir.

The recommended user home directory - null if none

Annotations
@Override
Exceptions
IOException:

Doc from org.apache.sshd.common.file.FileSystemFactory.getUserHomeDir.

If failed to resolve user's home directory