org.apache.sshd.server.filesystem
Class NativeFileSystemView

java.lang.Object
  extended by org.apache.sshd.server.filesystem.NativeFileSystemView
All Implemented Interfaces:
FileSystemView

public class NativeFileSystemView
extends Object
implements FileSystemView

Internal class, do not use directly. File system view based on native file system. Here the root directory will be user virtual root (/).

Author:
Apache MINA Project

Constructor Summary
protected NativeFileSystemView(String userName)
          Constructor - internal do not use directly, use NativeFileSystemFactory instead
  NativeFileSystemView(String userName, boolean caseInsensitive)
          Constructor - internal do not use directly, use NativeFileSystemFactory instead
 
Method Summary
 SshFile getFile(SshFile baseDir, String file)
          Get file object.
 SshFile getFile(String file)
          Get file object.
protected  SshFile getFile(String dir, String file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeFileSystemView

protected NativeFileSystemView(String userName)
Constructor - internal do not use directly, use NativeFileSystemFactory instead


NativeFileSystemView

public NativeFileSystemView(String userName,
                            boolean caseInsensitive)
Constructor - internal do not use directly, use NativeFileSystemFactory instead

Method Detail

getFile

public SshFile getFile(String file)
Get file object.

Specified by:
getFile in interface FileSystemView
Parameters:
file - The path to the file to get
Returns:
The SshFile for the provided path

getFile

public SshFile getFile(SshFile baseDir,
                       String file)
Description copied from interface: FileSystemView
Get file object.

Specified by:
getFile in interface FileSystemView
Parameters:
baseDir - The reference towards which the file should be resolved
file - The path to the file to get
Returns:
The SshFile for the provided path

getFile

protected SshFile getFile(String dir,
                          String file)


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.