org.apache.ftpserver.filesystem.nativefs
Class NativeFileSystemFactory

java.lang.Object
  extended by org.apache.ftpserver.filesystem.nativefs.NativeFileSystemFactory
All Implemented Interfaces:
FileSystemFactory

public class NativeFileSystemFactory
extends java.lang.Object
implements FileSystemFactory

Native file system factory. It uses the OS file system.

Version:
$Rev: 718394 $, $Date: 2008-11-17 22:43:30 +0100 (Mon, 17 Nov 2008) $
Author:
The Apache MINA Project (dev@mina.apache.org)

Constructor Summary
NativeFileSystemFactory()
           
 
Method Summary
 FileSystemView createFileSystemView(User user)
          Create the appropriate user file system view.
 boolean isCaseInsensitive()
          Is this file system case insensitive.
 boolean isCreateHome()
          Should the home directories be created automatically
 void setCaseInsensitive(boolean caseInsensitive)
          Should this file system be case insensitive.
 void setCreateHome(boolean createHome)
          Set if the home directories be created automatically
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeFileSystemFactory

public NativeFileSystemFactory()
Method Detail

isCreateHome

public boolean isCreateHome()
Should the home directories be created automatically

Returns:
true if the file system will create the home directory if not available

setCreateHome

public void setCreateHome(boolean createHome)
Set if the home directories be created automatically

Parameters:
createHome - true if the file system will create the home directory if not available

isCaseInsensitive

public boolean isCaseInsensitive()
Is this file system case insensitive. Enabling might cause problems when working against case-sensitive file systems, like on Linux

Returns:
true if this file system is case insensitive

setCaseInsensitive

public void setCaseInsensitive(boolean caseInsensitive)
Should this file system be case insensitive. Enabling might cause problems when working against case-sensitive file systems, like on Linux

Parameters:
caseInsensitive - true if this file system should be case insensitive

createFileSystemView

public FileSystemView createFileSystemView(User user)
                                    throws FtpException
Create the appropriate user file system view.

Specified by:
createFileSystemView in interface FileSystemFactory
Parameters:
user - The user for which the file system should be created
Returns:
The current FileSystemView for the provided user
Throws:
FtpException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.