Class RecordFileController

    • Constructor Detail

      • RecordFileController

        public RecordFileController()
    • 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