Java EE 5 SDK

com.sun.appserv.management.helper
Class Misc

java.lang.Object
  extended by com.sun.appserv.management.helper.Misc

public class Misc
extends Object

Miscellaneous helper routines specific to AMX. These routines may be moved prior to the release of 9.0

Since:
AppServer 9.0

Method Summary
static Object uploadFile(UploadDownloadMgr mgr, File theFile)
          Upload a file to the server and return an opaque identifier which server-side code may use to identify and use the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

uploadFile

public static Object uploadFile(UploadDownloadMgr mgr,
                                File theFile)
                         throws IOException
Upload a file to the server and return an opaque identifier which server-side code may use to identify and use the file. Uploading a file is typically done prior to deploying it, but may be done for other purposes.

Parameters:
mgr - an instance of UploadDownloadMgr, obtained via getDomainRoot().getUploadDownloadMgr()
theFile - the file to upload
Returns:
an upload ID
Throws:
IOException

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.