com.collabnet.ce.webservices
Class SimpleFileStorageApp

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

public class SimpleFileStorageApp
extends AbstractSoapApp

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


Constructor Summary
SimpleFileStorageApp(CollabNetApp collabNetApp)
          Construct a new SimpleFileStorageApp.
 
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

SimpleFileStorageApp

public SimpleFileStorageApp(CollabNetApp collabNetApp)
Construct a new SimpleFileStorageApp.

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 the operation fails


Copyright © 2010. All Rights Reserved.