FileDocCategorySizeDatePackage
FileTransfer.javaAPI DocGlassfish v2 API3998Fri May 04 22:33:16 BST 2007com.sun.enterprise.admin.common

FileTransfer

public interface FileTransfer
Interface to upload & download a given file to the server.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringdownloadClientStubs(java.lang.String appName, java.lang.String destDir)
Exports the Client stub jar to the given location.

param
appName The name of the application or module.
param
destDir The directory into which the stub jar file should be exported.
return
Returns the absolute location to the exported jar file.
throws
IOException for IO related exceptions

public java.lang.StringdownloadFile(java.lang.String filePath, java.lang.String destinationDirPath)
downloads file to the given location.

param
filePath the absolute path to the file to be downloaded
param
destDir The directory into which the stub jar file should be exported.
return
Returns the absolute location to the exported jar file.
throws
IOException for IO related exceptions

public java.lang.StringmcDownloadFile(java.lang.String filePath, java.io.File destPath)
Downloads file to the given location. This method supports multiple distributed clients.

param
filePath the absolute path to the file to be downloaded
param
destPath local file path where file should be downloaded
return
the absolute location to the downloaded jar file
throws
IOException for IO related exceptions

public java.lang.StringuploadFile(java.lang.String filePath)
uploads the given file to the server running at the host:port with authentication. Assumes jmx-remote with s1ashttp protocol.

param
filePath the absolute path to the file to be uploaded
throws
IOException for IO related exceptions
return
The full path of the uploaded file