org.apache.oodt.cas.pushpull.protocol.ftp
Class CogJGlobusFtpClient
java.lang.Object
org.apache.oodt.cas.pushpull.protocol.Protocol
org.apache.oodt.cas.pushpull.protocol.ftp.CogJGlobusFtpClient
public class CogJGlobusFtpClient
- extends Protocol
- Version:
- $Revision$
- Author:
- bfoster
| Methods inherited from class org.apache.oodt.cas.pushpull.protocol.Protocol |
cd, cdToHOME, cdToROOT, connect, delete, disconnect, download, download, equals, getAbsPathFor, getHomeDir, getProtocolFileFor, getProtocolType, getRemoteSite, isProtocolConnected, ls, ls, ls, pwd, reconnect |
CogJGlobusFtpClient
public CogJGlobusFtpClient()
chDir
protected void chDir(ProtocolPath path)
throws ProtocolException
- Specified by:
chDir in class Protocol
- Throws:
ProtocolException
cdToRoot
public void cdToRoot()
throws ProtocolException
- Specified by:
cdToRoot in class Protocol
- Throws:
ProtocolException
connect
public void connect(String host,
String username,
String password)
throws ProtocolException
- Specified by:
connect in class Protocol
- Throws:
ProtocolException
disconnectFromServer
public void disconnectFromServer()
throws ProtocolException
- Description copied from class:
Protocol
- Disconnects the Protocol for the server
- Specified by:
disconnectFromServer in class Protocol
- Throws:
ProtocolException
getFile
public void getFile(ProtocolFile file,
File toLocalFile)
throws ProtocolException
- Description copied from class:
Protocol
- Downloads a file from Protocol server to the location specified by the
java.io.File passed in. Only a name can be passed in for
fileName,
can't be a path. User must first navigate to the directory which contains
the file and then can call this method.
- Specified by:
getFile in class Protocol
- Throws:
ProtocolException
abortCurFileTransfer
public void abortCurFileTransfer()
throws ProtocolException
- Specified by:
abortCurFileTransfer in class Protocol
- Throws:
ProtocolException
listFiles
public List<ProtocolFile> listFiles()
throws ProtocolException
- Specified by:
listFiles in class Protocol
- Throws:
ProtocolException
getCurrentWorkingDir
public ProtocolFile getCurrentWorkingDir()
throws ProtocolException
- Description copied from class:
Protocol
- Returns a string value of current directory -- similar to U*ix pwd()
- Specified by:
getCurrentWorkingDir in class Protocol
- Returns:
- The path of current directory
- Throws:
ProtocolException
isConnected
public boolean isConnected()
- Description copied from class:
Protocol
- Can be used to determine if Protocol is connected
- Specified by:
isConnected in class Protocol
- Returns:
- true if Protocol is connected, otherwise false
sendNoOP
public void sendNoOP()
deleteFile
protected boolean deleteFile(ProtocolFile file)
- Specified by:
deleteFile in class Protocol
Copyright © 1999-2011 Apache Incubator. All Rights Reserved.