GSIFTPClient (Java Globus API)
org.globus.io.ftp
Class GSIFTPClient
java.lang.Object
|
+--org.globus.io.ftp.FTPCommon
|
+--org.globus.io.ftp.FTPClient
|
+--org.globus.io.ftp.GSIFTPClient
- Direct Known Subclasses:
- GridFTPClient
- public class GSIFTPClient
- extends FTPClient
| Fields inherited from class org.globus.io.ftp.FTPCommon |
ASCII, BINARY, ftpin, ftpout, host, NLST, PERMANENT_NEGATIVE_REPLY, port, POSITIVE_COMPLETION_REPLY, POSITIVE_INTERMEDIATE_REPLY, POSITIVE_PRELIMINARY_REPLY, requestThread, RETR, socket, TIMEOUT, TRANSIENT_NEGATIVE_REPLY |
|
Constructor Summary |
GSIFTPClient(java.lang.String host,
int port)
Connects to the secure ftp server on given host
and port number. |
| Methods inherited from class org.globus.io.ftp.FTPClient |
changeDir, closeSockets, closeStreams, copy, copy, deleteDir, deleteFile, executeStreamCommand, exists, features, get, get, getBufferSize, getCurrentDir, getLocalBufferSize, goUpDir, isFeatureSupported, isInCompatibilityMode, isPassiveMode, lastModified, list, list, makeDir, mGet, mPut, nlist, put, put, rename, setBufferSize, setCompatibilityMode, setDataChannelPort, setLocalBufferSize, setPassiveMode, setRemoteBufferSize, setRestartMarker, setSocketBufferSize, setType, setupServers, size, transfer, transferASCII, transferData |
| Methods inherited from class org.globus.io.ftp.FTPCommon |
abort, checkResponse, close, closeSocket, disconnect, doCmd, doCmd, executeCommand, getControlSocket, getReply, getRequestThread, getResponse, isPositiveComplete, isPositivePreliminary, isReplyType, readLine, sendFileCommand, setPassiveMode, setPort, startDataChannel, startDataChannel, startPassiveDataChannel, write, writeln |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gssout
protected GSIOutputStream gssout
gssin
protected GSIInputStream gssin
authorization
protected Authorization authorization
GSIFTPClient
public GSIFTPClient(java.lang.String host,
int port)
throws java.io.IOException,
FTPException
- Connects to the secure ftp server on given host
and port number.
- Parameters:
host - hostname of the ftp serverport - port number of the ftp server
connect
public void connect()
throws java.io.IOException,
FTPException
- Establishes connection to the secure ftp server
- Overrides:
connect in class FTPCommon
java.io.IOException
FTPException
setAuthorization
public void setAuthorization(Authorization auth)
- Sets the authorization to perform.
Host authentication is performed by default.
- Parameters:
auth - authorization to perform.
getAuthorization
public Authorization getAuthorization()
- Returns authorization type.
- Returns:
- authorization type. Can be null.
authenticate
public void authenticate(java.lang.String user,
java.lang.String pwd)
throws java.io.IOException,
FTPException
- Performs authentication with default user credentials.
Note: All arguemnts are igonred.
- Overrides:
authenticate in class FTPCommon
- Parameters:
user - usernamepwd - user password
java.io.IOException
FTPException
authenticate
public void authenticate()
throws java.io.IOException,
FTPException
- Performs authentication with default user credentials.
- Overrides:
authenticate in class FTPCommon
java.io.IOException
FTPException
authenticate
public void authenticate(GlobusProxy proxy)
throws java.io.IOException,
FTPException
- Performs authentication with specified user credentials.
- Parameters:
proxy - user credentials to use.
java.io.IOException
FTPException
getReply
public java.lang.String getReply()
throws java.io.IOException
- Overrides:
getReply in class FTPCommon
java.io.IOException