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 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