Package io.jmix.core.impl
Class FileTransferServiceImpl
java.lang.Object
io.jmix.core.impl.FileTransferServiceImpl
- All Implemented Interfaces:
FileTransferService
@Component("core_FileTransferService")
public class FileTransferServiceImpl
extends Object
implements FileTransferService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
downloadAndWriteResponse
(FileRef fileReference, String fileStorageName, Boolean attachment, javax.servlet.http.HttpServletResponse response) org.springframework.http.ResponseEntity<FileInfoResponse>
fileUpload
(String name, String fileStorageName, javax.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<FileInfoResponse>
multipartFileUpload
(org.springframework.web.multipart.MultipartFile file, String name, String fileStorageName, javax.servlet.http.HttpServletRequest request)
-
Constructor Details
-
FileTransferServiceImpl
public FileTransferServiceImpl()
-
-
Method Details
-
downloadAndWriteResponse
public void downloadAndWriteResponse(FileRef fileReference, String fileStorageName, Boolean attachment, javax.servlet.http.HttpServletResponse response) throws FileTransferException - Specified by:
downloadAndWriteResponse
in interfaceFileTransferService
- Throws:
FileTransferException
-
multipartFileUpload
public org.springframework.http.ResponseEntity<FileInfoResponse> multipartFileUpload(org.springframework.web.multipart.MultipartFile file, String name, String fileStorageName, javax.servlet.http.HttpServletRequest request) throws FileTransferException - Specified by:
multipartFileUpload
in interfaceFileTransferService
- Throws:
FileTransferException
-
fileUpload
public org.springframework.http.ResponseEntity<FileInfoResponse> fileUpload(String name, String fileStorageName, javax.servlet.http.HttpServletRequest request) throws FileTransferException - Specified by:
fileUpload
in interfaceFileTransferService
- Throws:
FileTransferException
-