Search in sources :

Example 1 with SftpFileProvider

use of com.jn.agileway.vfs.provider.sftp.SftpFileProvider in project agileway by fangjinuo.

the class AgilewayVFSManagerBootstrap method startup.

public static void startup() throws Throwable {
    FileSystemManager defaultFSManager = VFS.getManager();
    VFSUtils.addFileProvider((DefaultFileSystemManager) defaultFSManager, new SftpFileProvider(), "sftp");
}
Also used : FileSystemManager(org.apache.commons.vfs2.FileSystemManager) DefaultFileSystemManager(org.apache.commons.vfs2.impl.DefaultFileSystemManager) SftpFileProvider(com.jn.agileway.vfs.provider.sftp.SftpFileProvider)

Aggregations

SftpFileProvider (com.jn.agileway.vfs.provider.sftp.SftpFileProvider)1 FileSystemManager (org.apache.commons.vfs2.FileSystemManager)1 DefaultFileSystemManager (org.apache.commons.vfs2.impl.DefaultFileSystemManager)1