Package cronapi.rest
Class DownloadREST
java.lang.Object
cronapi.rest.DownloadREST
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringauthorizeUpload(Callback callback) voiddownload(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String id) static StringgetDownloadUrl(File file) static StringgetDownloadUrl(File file, String labelForDownload) static StringgetDownloadUrl(InputStream inputStream, String labelForDownload) static FilegetTempFile(String name) upload(jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.http.HttpServletRequest request, String id, org.springframework.web.multipart.MultipartFile[] uploadfiles)
-
Field Details
-
format
-
TEMP_FOLDER
-
-
Constructor Details
-
DownloadREST
public DownloadREST()
-
-
Method Details
-
getTempFile
-
getDownloadUrl
-
getDownloadUrl
-
getDownloadUrl
-
authorizeUpload
-
upload
@RequestMapping(method=POST, value="/upload/{id}") public RestResult upload(jakarta.servlet.http.HttpServletResponse response, jakarta.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(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @PathVariable("id") String id) throws Exception - Throws:
Exception
-