|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ISimpleFileStorageAppSoap
Provides SOAP web service for uploading/downloading files. Uploaded files are assigned a "tempoary session-specific key" which must be used within the SOAP session to create a document/FRS file/etc. Otherwise, the uploaded file is simply discarded. This service is primarily meant for clients which are unable to use SOAP file attachments for uploading/downloading files. Uploading/downloading files as attachments is much more efficient than returning them in memory. The "FileStorageApp" service provides support for uploading/downloading files as attachments.
| Method Summary | |
|---|---|
void |
endFileUpload(java.lang.String sessionId,
java.lang.String fileId)
Closes and saves uploaded file. |
long |
getSize(java.lang.String sessionId,
java.lang.String fileId)
Returns size of the specified file in bytes. |
byte[] |
read(java.lang.String sessionId,
java.lang.String fileId,
int offset,
int length)
Reads from file a specified a number of bytes from the offset specified. |
java.lang.String |
startFileUpload(java.lang.String sessionId)
Opens a new file descriptor for uploading. |
void |
write(java.lang.String sessionId,
java.lang.String fileId,
byte[] data)
Appends data to the file being uploaded. |
| Method Detail |
|---|
java.lang.String startFileUpload(java.lang.String sessionId)
throws java.rmi.RemoteException
sessionId - User session id.
com.vasoftware.sf.soap44.fault.InvalidSessionFault - when the specified session id is invalid.
com.vasoftware.sf.soap44.fault.SystemFault - when an unexpected system level error is encountered.
java.rmi.RemoteException
void write(java.lang.String sessionId,
java.lang.String fileId,
byte[] data)
throws java.rmi.RemoteException
sessionId - User session id.fileId - Id of the file being uploaded.data - Data to be uploaded.
com.vasoftware.sf.soap44.fault.InvalidSessionFault - when the specified session id is invalid.
com.vasoftware.sf.soap44.fault.SystemFault - when an unexpected system level error is encountered.
java.rmi.RemoteException
void endFileUpload(java.lang.String sessionId,
java.lang.String fileId)
throws java.rmi.RemoteException
sessionId - User session id.fileId - Id of file to download.
com.vasoftware.sf.soap44.fault.InvalidSessionFault - when the specified session id is invalid.
com.vasoftware.sf.soap44.fault.SystemFault - when an unexpected system level error is encountered.
java.rmi.RemoteException
long getSize(java.lang.String sessionId,
java.lang.String fileId)
throws java.rmi.RemoteException
sessionId - User session id.fileId - File id.
com.vasoftware.sf.soap44.fault.InvalidSessionFault - when the specified session id is invalid.
com.vasoftware.sf.soap44.fault.SystemFault - when an unexpected system level error is encountered.
java.rmi.RemoteException
byte[] read(java.lang.String sessionId,
java.lang.String fileId,
int offset,
int length)
throws java.rmi.RemoteException
sessionId - User session id.fileId - File from which to read the data.offset - Offset within file from where to read.length - Number of bytes to read.
com.vasoftware.sf.soap44.fault.InvalidSessionFault - when the specified session id is invalid.
com.vasoftware.sf.soap44.fault.SystemFault - when an unexpected system level error is encountered.
com.vasoftware.sf.soap44.fault.PermissionDeniedFault - when the
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||