|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.util.TransferFacade
This class implements methods for a transfer protocol, specifically putting, getting and appending files.
Created on April 14, 2004, 11:10 AM
| Constructor Summary | |
TransferFacade()
|
|
| Method Summary | |
abstract 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. |
abstract void |
append(java.io.File localFragment,
java.lang.String remoteDir,
java.lang.String remoteFile)
|
abstract void |
append(java.io.File localFragment,
java.net.URI remoteURI)
|
abstract void |
get(java.lang.String remoteFile,
java.io.File localFile)
Get a client, authenticate, get a file, and close the client. |
abstract 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. |
abstract void |
get(java.net.URI remoteURI,
java.io.File localFile)
|
abstract void |
put(java.io.File localFile,
java.lang.String remoteFile)
Get a client, authenticate, put a file to the server, and close the client. |
abstract void |
put(java.io.File localFile,
java.lang.String remoteDir,
java.lang.String remoteFile)
|
abstract 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. |
static java.lang.String[] |
splitPath(java.net.URI uri)
A utility method for tokenizing a URI into directory and name components. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransferFacade()
| Method Detail |
public abstract void append(java.io.File localFragment,
java.lang.String remoteDir,
java.lang.String remoteFile)
throws java.lang.Exception
java.lang.Exception
public abstract void append(java.io.File localFragment,
java.lang.String remoteFile)
throws java.lang.Exception
localFragment - the file fragment to appendremoteFile - the remote file name
java.lang.Exception
public abstract void append(java.io.File localFragment,
java.net.URI remoteURI)
throws java.lang.Exception
java.lang.Exception
public abstract void get(java.lang.String remoteDir,
java.lang.String remoteFile,
java.io.File localFile)
throws java.lang.Exception
remoteDir - the remote directorylocalFile - the file to store the results in
java.lang.Exception
public abstract void get(java.lang.String remoteFile,
java.io.File localFile)
throws java.lang.Exception
localFile - the file to store the results in
java.lang.Exception
public abstract void get(java.net.URI remoteURI,
java.io.File localFile)
throws java.lang.Exception
java.lang.Exception
public abstract void put(java.io.File localFile,
java.lang.String remoteDir,
java.lang.String remoteFile)
throws java.lang.Exception
java.lang.Exception
public abstract void put(java.io.File localFile,
java.lang.String remoteFile)
throws java.lang.Exception
localFile - the file to putremoteFile - the remote file name
java.lang.Exception
public abstract void put(java.io.File localFile,
java.net.URI remoteURI)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String[] splitPath(java.net.URI uri)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||