Class RecordFileController
- java.lang.Object
-
- org.openforis.collect.web.controller.BasicController
-
- org.openforis.collect.web.controller.RecordFileController
-
- All Implemented Interfaces:
Serializable
@Controller @Scope("session") @RequestMapping("api") public class RecordFileController extends BasicController implements Serializable- Author:
- S. Ricci
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecordFileController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownloadFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, int surveyId, int recordId, CollectRecord.Step recordStep, String nodePath)voiddownloadThumbnail(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, int surveyId, int recordId, CollectRecord.Step recordStep, String nodePath)-
Methods inherited from class org.openforis.collect.web.controller.BasicController
generateFormValidationResponse, getSessionState
-
-
-
-
Method Detail
-
downloadFile
@RequestMapping(value="/survey/{surveyId}/data/records/{recordId}/{recordStep}/file", method=GET) public void downloadFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @PathVariable("surveyId") int surveyId, @PathVariable("recordId") int recordId, @PathVariable("recordStep") CollectRecord.Step recordStep, @RequestParam("nodePath") String nodePath) throws IOException- Throws:
IOException
-
downloadThumbnail
@RequestMapping(value="/survey/{surveyId}/data/records/{recordId}/{recordStep}/file-thumbnail", method=GET) public void downloadThumbnail(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @PathVariable("surveyId") int surveyId, @PathVariable("recordId") int recordId, @PathVariable("recordStep") CollectRecord.Step recordStep, @RequestParam("nodePath") String nodePath) throws IOException- Throws:
IOException
-
-