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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddownloadFile(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
-
Constructor Details
-
RecordFileController
public RecordFileController()
-
-
Method Details
-
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
-