本文整理汇总了Java中org.apache.ftpserver.ftplet.FileSystemFactory类的典型用法代码示例。如果您正苦于以下问题:Java FileSystemFactory类的具体用法?Java FileSystemFactory怎么用?Java FileSystemFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FileSystemFactory类属于org.apache.ftpserver.ftplet包,在下文中一共展示了FileSystemFactory类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ftpServer
import org.apache.ftpserver.ftplet.FileSystemFactory; //导入依赖的package包/类
@Bean
FtpServer ftpServer(UserManager userManager, Listener nioListener, FileSystemFactory fileSystemFactory) throws FtpException {
FtpServerFactory ftpServerFactory = new FtpServerFactory();
ftpServerFactory.setListeners(Collections.singletonMap("default", nioListener));
ftpServerFactory.setFileSystem(fileSystemFactory);
ftpServerFactory.setUserManager(userManager);
return ftpServerFactory.createServer();
}
示例2: getFileSystemFactory
import org.apache.ftpserver.ftplet.FileSystemFactory; //导入依赖的package包/类
public FileSystemFactory getFileSystemFactory() {
return fileSystemFactory;
}
示例3: setFileSystemFactory
import org.apache.ftpserver.ftplet.FileSystemFactory; //导入依赖的package包/类
public void setFileSystemFactory(FileSystemFactory fileSystemFactory) {
this.fileSystemFactory = fileSystemFactory;
}
示例4: getBeanClass
import org.apache.ftpserver.ftplet.FileSystemFactory; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected Class<? extends FileSystemFactory> getBeanClass(
final Element element) {
return NativeFileSystemFactory.class;
}
示例5: getFileSystemManager
import org.apache.ftpserver.ftplet.FileSystemFactory; //导入依赖的package包/类
/**
* Get file system manager.
*/
public FileSystemFactory getFileSystemManager() {
return fileSystemManager;
}
示例6: setFileSystemManager
import org.apache.ftpserver.ftplet.FileSystemFactory; //导入依赖的package包/类
public void setFileSystemManager(FileSystemFactory fileSystemManager) {
this.fileSystemManager = fileSystemManager;
}
示例7: getFileSystemManager
import org.apache.ftpserver.ftplet.FileSystemFactory; //导入依赖的package包/类
public FileSystemFactory getFileSystemManager() {
return null;
}
示例8: getFileSystem
import org.apache.ftpserver.ftplet.FileSystemFactory; //导入依赖的package包/类
/**
* Retrieve the file system used by servers created by this factory
*
* @return The {@link FileSystemFactory}
*/
public FileSystemFactory getFileSystem() {
return serverContext.getFileSystemManager();
}
示例9: setFileSystem
import org.apache.ftpserver.ftplet.FileSystemFactory; //导入依赖的package包/类
/**
* Set the file system to be used by servers created by this factory
*
* @param fileSystem
* The {@link FileSystemFactory}
* @throws IllegalStateException
* If a custom server context has been set
*/
public void setFileSystem(final FileSystemFactory fileSystem) {
serverContext.setFileSystemManager(fileSystem);
}
示例10: getFileSystem
import org.apache.ftpserver.ftplet.FileSystemFactory; //导入依赖的package包/类
/**
* Retrieve the file system used with this server
*
* @return The {@link FileSystemFactory}
*/
public FileSystemFactory getFileSystem() {
return getServerContext().getFileSystemManager();
}