Class FileDownloadController

java.lang.Object
io.jmix.rest.impl.controller.FileDownloadController

@RestController("rest_FileDownloadController") @RequestMapping("/rest/files") public class FileDownloadController extends Object
REST API controller that is used for downloading files
  • Field Details

  • Constructor Details

    • FileDownloadController

      public FileDownloadController()
  • Method Details

    • downloadFile

      @GetMapping public void downloadFile(@RequestParam String fileRef, @RequestParam(required=false) Boolean attachment, javax.servlet.http.HttpServletResponse response)
    • checkFileDownloadPermission

      protected void checkFileDownloadPermission()