Package cronapi.rest

Class DownloadREST


  • @RestController
    @RequestMapping("/api/cronapi")
    public class DownloadREST
    extends Object
    • Constructor Detail

      • DownloadREST

        public DownloadREST()
    • Method Detail

      • getTempFile

        public static File getTempFile​(String name)
      • getDownloadUrl

        public static String getDownloadUrl​(File file)
      • getDownloadUrl

        public static String getDownloadUrl​(File file,
                                            String labelForDownload)
      • authorizeUpload

        public static String authorizeUpload​(Callback callback)
      • upload

        @RequestMapping(method=POST,
                        value="/upload/{id}")
        public RestResult upload​(javax.servlet.http.HttpServletResponse response,
                                 javax.servlet.http.HttpServletRequest request,
                                 @PathVariable("id")
                                 String id,
                                 @RequestParam("file")
                                 org.springframework.web.multipart.MultipartFile[] uploadfiles)
      • download

        @RequestMapping(method=GET,
                        value="/download/{id}")
        public void download​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response,
                             @PathVariable("id")
                             String id)
                      throws Exception
        Throws:
        Exception