@HTTPService(name="fs") public class FileService extends java.lang.Object
ClientService| Constructor and Description |
|---|
FileService() |
| Modifier and Type | Method and Description |
|---|---|
Response |
addFile(AuthenticationParameter authenticatedUser,
InputStreamParameter file,
StringParameter filename) |
void |
deleteFile(AuthenticationParameter authenticatedUser,
LongParameter fileId) |
Response |
listFiles(AuthenticationParameter authenticatedUser,
LongParameter fileId,
Limits limits) |
public FileService()
@HTTPServiceMethod(name="addFile", acceptedMethods="POST") public Response addFile(@HTTPAuthenticationParameter AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="body",bodyParameter=true) InputStreamParameter file, @HTTPMethodParameter(name="filename",required=false) StringParameter filename)
authenticatedUser - file - filename - ClientService.addFile(AuthenticationParameter, InputStreamParameter, StringParameter)@HTTPServiceMethod(name="deleteFile", acceptedMethods="DELETE") public void deleteFile(@HTTPAuthenticationParameter AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="file_id") LongParameter fileId)
authenticatedUser - fileId - ClientService.deleteFile(AuthenticationParameter, LongParameter)@HTTPServiceMethod(name="listFiles", acceptedMethods="GET") public Response listFiles(@HTTPAuthenticationParameter AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="file_id",required=false) LongParameter fileId, @HTTPMethodParameter(name="limits",required=false) Limits limits)
authenticatedUser - fileId - limits - ClientService.listFiles(AuthenticationParameter, LongParameter, Limits)Copyright © 2015 Tampere University of Technology, Pori Department.