|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
File transfer strategies contain the logic for put/getting files from a staging area. Note that it is not up to these handlers to create staging areas. This will probably involve some sort of permission issues that cannot be handled under NFMS, since it is a java application. Part of the contract for this class is to be able to create pairs of URIs that are
Implementations of this inteface use a specific strategy (such as "move files to user's home directory for upload") for up- and downloading files from the repository. Strategies are kept separate from protocols, as several protocols could use the same basic file-moving strategy, and vice-versa.
| Method Summary | |
java.net.URI[] |
createDownloadURI(DownloadRequestRecord drr)
This moves an existing file from the repository to staging area and creates the corresponding uri. |
java.net.URI[] |
createUploadURI(UploadRequestRecord urr)
This creates the uri that the user can upload a file to. |
void |
finishDownload(DownloadRequestRecord drr)
When a download from the server is complete, a notification is sent to NFMS which in turn calls this method. |
java.net.URI |
finishUpload(UploadRequestRecord urr)
Once NFMS receives notification that the upload is done, this method is invoked. |
| Method Detail |
public java.net.URI[] createUploadURI(UploadRequestRecord urr)
throws NFMSException
urr - the record of this request.
NFMSException - thrown if the file already exists, or if the staging area cannot be accessed or found.
public java.net.URI[] createDownloadURI(DownloadRequestRecord drr)
throws NFMSException
drr - the record of this request.
NFMSException - thrown if the staging area cannot be accessed or found, or if the file does not exist in the repository.
public java.net.URI finishUpload(UploadRequestRecord urr)
throws NFMSException
NFMSException - is thrown if the file fails to exist in the staging area or cannot be moved to its permanent location
public void finishDownload(DownloadRequestRecord drr)
throws NFMSException
NFMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||