com.myJava.file.driver.remote.ftp
Class FTPProxy
java.lang.Object
com.myJava.file.driver.remote.AbstractProxy
com.myJava.file.driver.remote.ftp.FTPProxy
public class FTPProxy
- extends AbstractProxy
Proxy that abstracts the ftp access layer.
It wraps the ftp framework.
- Author:
- Olivier PETRUCCI
Areca Build ID : 7299034069467778562
Methods inherited from class com.myJava.file.driver.remote.AbstractProxy |
acquireLock, checkLocked, clearCache, createNewFile, debug, debug, flush, getConnectionId, getFileOutputStream, getOwnerId, hasReconnectSince, initFictiveLocalFile, registerFileInfo, releaseLock, removeCachedFileInfos, setFileInfoCache, updateOpTime |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
FTPProxy
public FTPProxy()
getLogin
public java.lang.String getLogin()
setLogin
public void setLogin(java.lang.String login)
isPassivMode
public boolean isPassivMode()
setPassivMode
public void setPassivMode(boolean passivMode)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String password)
getRemotePort
public int getRemotePort()
setRemotePort
public void setRemotePort(int remotePort)
getRemoteServer
public java.lang.String getRemoteServer()
setRemoteServer
public void setRemoteServer(java.lang.String remoteServer)
getProtocol
public java.lang.String getProtocol()
isImpliciteSec
public boolean isImpliciteSec()
setImpliciteSec
public void setImpliciteSec(boolean impliciteSec)
setProtocol
public void setProtocol(java.lang.String protocol)
getProtection
public java.lang.String getProtection()
setProtection
public void setProtection(java.lang.String protection)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isSecured
public boolean isSecured()
connect
public void connect()
throws FTPConnectionException
- Enforce server reconnection (closes the current connection if it is still alive)
- Throws:
FTPConnectionException
resetClient
protected void resetClient(java.lang.Throwable e)
- Specified by:
resetClient
in class AbstractProxy
disconnect
public void disconnect()
- Disconnects from the server.
- Specified by:
disconnect
in class AbstractProxy
deleteFile
public boolean deleteFile(java.lang.String remoteFile)
throws FTPConnectionException
- Specified by:
deleteFile
in class AbstractProxy
- Throws:
FTPConnectionException
deleteDir
public boolean deleteDir(java.lang.String remoteDir)
throws FTPConnectionException
- Specified by:
deleteDir
in class AbstractProxy
- Throws:
FTPConnectionException
mkdir
public boolean mkdir(java.lang.String remoteFile)
throws FTPConnectionException
- Specified by:
mkdir
in class AbstractProxy
- Throws:
FTPConnectionException
noop
public void noop()
throws FTPConnectionException
- Throws:
FTPConnectionException
renameTo
public boolean renameTo(java.lang.String source,
java.lang.String destination)
throws FTPConnectionException
- Specified by:
renameTo
in class AbstractProxy
- Throws:
FTPConnectionException
getFileInputStream
public java.io.InputStream getFileInputStream(java.lang.String file)
throws FTPConnectionException
- Specified by:
getFileInputStream
in class AbstractProxy
- Throws:
FTPConnectionException
getFileOutputStream
public java.io.OutputStream getFileOutputStream(java.lang.String file,
boolean append)
throws RemoteConnectionException
- Specified by:
getFileOutputStream
in class AbstractProxy
- Throws:
RemoteConnectionException
listFiles
public FictiveFile[] listFiles(java.lang.String parentFile)
throws FTPConnectionException
- Specified by:
listFiles
in class AbstractProxy
- Throws:
FTPConnectionException
getRemoteFileInfos
public FictiveFile getRemoteFileInfos(java.lang.String remoteFile)
throws FTPConnectionException
- Specified by:
getRemoteFileInfos
in class AbstractProxy
- Throws:
FTPConnectionException
completePendingCommand
public void completePendingCommand(boolean blocking)
throws java.io.IOException,
RemoteConnectionException
- Specified by:
completePendingCommand
in class AbstractProxy
- Throws:
java.io.IOException
RemoteConnectionException
resetContextData
protected void resetContextData()
- Specified by:
resetContextData
in class AbstractProxy
cloneProxy
public AbstractProxy cloneProxy()
- Specified by:
cloneProxy
in class AbstractProxy