public class FtpFileSystem extends AbstractFileSystem
| Constructor and Description |
|---|
FtpFileSystem(GenericFileName rootName,
ClientWrapperFactory clientWrapperFactory,
FileSystemOptions fileSystemOptions) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCapabilities(Collection<Capability> caps)
Adds the capabilities of this file system.
|
protected FileObject |
createFile(AbstractFileName name)
Creates a file object.
|
protected void |
doCloseCommunicationLink()
Close the underlying link used to access the files
|
FtpClient |
getClient()
Creates an FTP client to use.
|
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttributegetContext, getLogger, setContext, setLoggerpublic FtpFileSystem(GenericFileName rootName, ClientWrapperFactory clientWrapperFactory, FileSystemOptions fileSystemOptions) throws FileSystemException
rootName - The root of the file system.clientWrapperFactory - The FtpClientWrapperFactory.fileSystemOptions - The FileSystemOptions.FileSystemExceptionprotected void doCloseCommunicationLink()
AbstractFileSystemdoCloseCommunicationLink in class AbstractFileSystemprotected void addCapabilities(Collection<Capability> caps)
addCapabilities in class AbstractFileSystemcaps - collections of Capabilities, can be immutable.public FtpClient getClient() throws FileSystemException
FileSystemException - if an error occurs.protected FileObject createFile(AbstractFileName name) throws FileSystemException
createFile in class AbstractFileSystemname - name referencing the new file.FileSystemExceptionCopyright © 2002–2022 WSO2. All rights reserved.