|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.provider.AbstractFileSystem
org.apache.commons.vfs.provider.ftp.FtpFileSystem
public class FtpFileSystem
An FTP file system.
Field Summary | |
---|---|
private FtpClient |
idleClient
|
private java.lang.Object |
idleClientSync
|
private static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
protected |
FtpFileSystem(GenericFileName rootName,
FtpClient ftpClient,
FileSystemOptions fileSystemOptions)
|
Method Summary | |
---|---|
protected void |
addCapabilities(java.util.Collection caps)
Adds the capabilities of this file system. |
private void |
closeConnection(FtpClient client)
Cleans up the connection to the server. |
protected FileObject |
createFile(FileName name)
Creates a file object. |
protected void |
doCloseCommunicationLink()
Close the underlaying link used to access the files |
FtpClient |
getClient()
Creates an FTP client to use. |
void |
putClient(FtpClient client)
Returns an FTP client after use. |
Methods inherited from class org.apache.commons.vfs.provider.AbstractFileSystem |
---|
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute |
Methods inherited from class org.apache.commons.vfs.provider.AbstractVfsComponent |
---|
getContext, getLogger, setContext, setLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
private FtpClient idleClient
private final java.lang.Object idleClientSync
Constructor Detail |
---|
protected FtpFileSystem(GenericFileName rootName, FtpClient ftpClient, FileSystemOptions fileSystemOptions)
Method Detail |
---|
protected void doCloseCommunicationLink()
AbstractFileSystem
doCloseCommunicationLink
in class AbstractFileSystem
protected void addCapabilities(java.util.Collection caps)
addCapabilities
in class AbstractFileSystem
private void closeConnection(FtpClient client)
public FtpClient getClient() throws FileSystemException
FileSystemException
public void putClient(FtpClient client)
protected FileObject createFile(FileName name) throws FileSystemException
createFile
in class AbstractFileSystem
FileSystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |