public class MiltonFsView extends Object implements org.apache.ftpserver.ftplet.FileSystemView
| Modifier and Type | Class and Description |
|---|---|
static class |
MiltonFsView.ResourceAndPath
Represents a resource (possibly null) and an absolute path (never null)
|
| Constructor and Description |
|---|
MiltonFsView(Path homePath,
String host,
ResourceFactory resourceFactory,
MiltonUser user) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeWorkingDirectory(String dir) |
void |
dispose() |
org.apache.ftpserver.ftplet.FtpFile |
getFile(String path) |
org.apache.ftpserver.ftplet.FtpFile |
getHomeDirectory() |
MiltonFsView.ResourceAndPath |
getResource(Path p) |
org.apache.ftpserver.ftplet.FtpFile |
getWorkingDirectory() |
boolean |
isRandomAccessible() |
org.apache.ftpserver.ftplet.FtpFile |
wrap(Path path,
Resource r) |
public MiltonFsView(Path homePath, String host, ResourceFactory resourceFactory, MiltonUser user)
public org.apache.ftpserver.ftplet.FtpFile getHomeDirectory()
throws org.apache.ftpserver.ftplet.FtpException
getHomeDirectory in interface org.apache.ftpserver.ftplet.FileSystemVieworg.apache.ftpserver.ftplet.FtpExceptionpublic org.apache.ftpserver.ftplet.FtpFile getWorkingDirectory()
throws org.apache.ftpserver.ftplet.FtpException
getWorkingDirectory in interface org.apache.ftpserver.ftplet.FileSystemVieworg.apache.ftpserver.ftplet.FtpExceptionpublic boolean changeWorkingDirectory(String dir) throws org.apache.ftpserver.ftplet.FtpException
changeWorkingDirectory in interface org.apache.ftpserver.ftplet.FileSystemVieworg.apache.ftpserver.ftplet.FtpExceptionpublic org.apache.ftpserver.ftplet.FtpFile getFile(String path) throws org.apache.ftpserver.ftplet.FtpException
getFile in interface org.apache.ftpserver.ftplet.FileSystemVieworg.apache.ftpserver.ftplet.FtpExceptionpublic boolean isRandomAccessible()
throws org.apache.ftpserver.ftplet.FtpException
isRandomAccessible in interface org.apache.ftpserver.ftplet.FileSystemVieworg.apache.ftpserver.ftplet.FtpExceptionpublic void dispose()
dispose in interface org.apache.ftpserver.ftplet.FileSystemViewpublic MiltonFsView.ResourceAndPath getResource(Path p) throws NotAuthorizedException, BadRequestException
Copyright © 2021 McEvoy Software Ltd. All rights reserved.