|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.util.TransferFacade
org.nees.util.grid.FTPFacade
| Field Summary | |
protected java.lang.String |
_password
|
protected java.lang.String |
_userID
|
protected java.lang.String |
host
|
protected int |
port
|
| Constructor Summary | |
FTPFacade(java.lang.String host,
int port)
|
|
FTPFacade(java.lang.String h,
java.lang.String userID,
java.lang.String password,
int p)
Create a facade for the given FTP server, with the default credential. |
|
| Method Summary | |
void |
append(java.io.File localFragment,
java.lang.String remoteFile)
Get a client, authenticate, append to a file on the server, and close the client. |
void |
append(java.io.File localFragment,
java.lang.String remoteDir,
java.lang.String remoteFile)
Get a client, authenticate, append to a file on the server, and close the client. |
void |
append(java.io.File localFragment,
java.net.URI remoteURI)
|
void |
get(java.lang.String remoteFile,
java.io.File localFile)
Get a client, authenticate, get a file, and close the client. |
void |
get(java.lang.String remoteDir,
java.lang.String remoteFile,
java.io.File localFile)
Get a client, authenticate, get a file, and close the client. |
void |
get(java.net.URI remoteURI,
java.io.File localFile)
|
org.globus.ftp.FTPClient |
getClient()
Get a client authenticated to this server. |
void |
put(java.io.File localFile,
java.lang.String remoteFile)
Get a client, authenticate, put a file to the server, and close the client. |
void |
put(java.io.File localFile,
java.lang.String remoteDir,
java.lang.String remoteFile)
Get a client, authenticate, put a file to the server, and close the client. |
void |
put(java.io.File localFile,
java.net.URI remoteURI)
Get a client, authenticate, append to a file on the server, and close the client. |
void |
setASCIITransferType()
Set transfer type to ASCII |
void |
setBinaryTransferType()
Set transfer type to binary ("IMAGE"); |
void |
setTransferType(int tt)
Set the transfer type (e.g., ascii, binary). |
| Methods inherited from class org.nees.util.TransferFacade |
splitPath |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String host
protected java.lang.String _userID
protected java.lang.String _password
protected int port
| Constructor Detail |
public FTPFacade(java.lang.String h,
java.lang.String userID,
java.lang.String password,
int p)
throws java.lang.Exception
h - the server hostp - the server port
public FTPFacade(java.lang.String host,
int port)
throws java.lang.Exception
| Method Detail |
public void setTransferType(int tt)
tt - the transfer typepublic void setASCIITransferType()
public void setBinaryTransferType()
public org.globus.ftp.FTPClient getClient()
throws java.lang.Exception
java.lang.Exception
public void put(java.io.File localFile,
java.lang.String remoteDir,
java.lang.String remoteFile)
throws java.lang.Exception
put in class TransferFacadelocalFile - the file to putremoteDir - the remote directoryremoteFile - the remote file name
java.lang.Exception
public void put(java.io.File localFile,
java.lang.String remoteFile)
throws java.lang.Exception
put in class TransferFacadelocalFile - the file to putremoteFile - the remote file name
java.lang.Exception
public void append(java.io.File localFragment,
java.lang.String remoteDir,
java.lang.String remoteFile)
throws java.lang.Exception
append in class TransferFacadelocalFragment - the file fragment to appendremoteDir - the remote directoryremoteFile - the remote file name
java.lang.Exception
public void append(java.io.File localFragment,
java.lang.String remoteFile)
throws java.lang.Exception
append in class TransferFacadelocalFragment - the file fragment to appendremoteFile - the remote file name
java.lang.Exception
public void append(java.io.File localFragment,
java.net.URI remoteURI)
throws java.lang.Exception
append in class TransferFacadejava.lang.Exception
public void get(java.net.URI remoteURI,
java.io.File localFile)
throws java.lang.Exception
get in class TransferFacadejava.lang.Exception
public void put(java.io.File localFile,
java.net.URI remoteURI)
throws java.lang.Exception
TransferFacade
put in class TransferFacadejava.lang.Exception
public void get(java.lang.String remoteDir,
java.lang.String remoteFile,
java.io.File localFile)
throws java.lang.Exception
get in class TransferFacaderemoteDir - the remote directorylocalFile - the file to store the results in
java.lang.Exception
public void get(java.lang.String remoteFile,
java.io.File localFile)
throws java.lang.Exception
get in class TransferFacadelocalFile - the file to store the results in
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||