net.sf.basedb.ws.server
Class FileService
java.lang.Object
net.sf.basedb.ws.server.AbstractRPCService
net.sf.basedb.ws.server.FileService
public class FileService
- extends AbstractRPCService
Web service class for File
File
.
- Since:
- 3.0
- Author:
- Nicklas
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileService
public FileService()
getById
public FileInfo getById(String ID,
int itemId)
- Get information about a file that you know the ID of.
- Parameters:
ID
- Id to identify the session.itemId
- The ID of the file
- Returns:
- The file information
download
public org.apache.axiom.om.OMElement download(String ID,
int fileId)
- Download the file contents.
- Parameters:
ID
- Used to identify an active session with.fileId
- Id of the file to download
- Returns:
- OMElement with the file attached,
or NULL if no file was found or doesn't have any
data