public class VirtualFileSystemFactory extends Object implements FileSystemFactory
Constructor and Description |
---|
VirtualFileSystemFactory() |
VirtualFileSystemFactory(Path defaultHomeDir) |
Modifier and Type | Method and Description |
---|---|
protected Path |
computeRootDir(String userName) |
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
FileSystemFactory
createFileSystem
in interface FileSystemFactory
session
- The session created for the userFileSystem
for the provided sessionIOException
- when the filesystem can not be createdprotected Path computeRootDir(String userName) throws IOException
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.