public class VirtualFileSystemFactory extends Object implements FileSystemFactory
| Constructor and Description |
|---|
VirtualFileSystemFactory() |
VirtualFileSystemFactory(Path defaultHomeDir) |
| Modifier and Type | Method and Description |
|---|---|
protected Path |
computeRootDir(Session session) |
FileSystem |
createFileSystem(Session session)
Create user specific file system.
|
Path |
getDefaultHomeDir() |
Path |
getUserHomeDir(String userName) |
void |
setDefaultHomeDir(Path defaultHomeDir) |
void |
setUserHomeDir(String userName,
Path userHomeDir) |
public VirtualFileSystemFactory()
public VirtualFileSystemFactory(Path defaultHomeDir)
public void setDefaultHomeDir(Path defaultHomeDir)
public Path getDefaultHomeDir()
public FileSystem createFileSystem(Session session) throws IOException
FileSystemFactorycreateFileSystem in interface FileSystemFactorysession - The session created for the userFileSystem for the provided sessionIOException - if the filesystem can not be createdprotected Path computeRootDir(Session session) throws IOException
IOExceptionCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.