com.collabnet.ce.webservices
Class FileStorageApp

java.lang.Object
  extended by com.collabnet.ce.webservices.AbstractSoapApp
      extended by com.collabnet.ce.webservices.FileStorageApp

public class FileStorageApp
extends AbstractSoapApp

Class to hold the file-related methods. Wraps a CollabNetApp.


Constructor Summary
FileStorageApp(CollabNetApp collabNetApp)
          Construct a new FileStorageApp.
 
Method Summary
 java.lang.String uploadFile(java.io.File file)
          Upload a file to the server.
 
Methods inherited from class com.collabnet.ce.webservices.AbstractSoapApp
checkValidSessionId, getServerUrl, getSessionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStorageApp

public FileStorageApp(CollabNetApp collabNetApp)
Construct a new FileStorageApp.

Parameters:
collabNetApp - a valid (logged-in) collabNetApp.
Method Detail

uploadFile

public java.lang.String uploadFile(java.io.File file)
                            throws java.rmi.RemoteException
Upload a file to the server.

Parameters:
file - to upload.
Returns:
the fileId associatd with the uploaded file.
Throws:
java.rmi.RemoteException - if something fails


Copyright © 2010. All Rights Reserved.