Package io.mateu.core.domain
Class UploadService
java.lang.Object
io.mateu.core.domain.UploadService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFileUrl(String fileId, String fileName) reactor.core.publisher.Mono<Void>handleFileUpload(String fileId, reactor.core.publisher.Mono<org.springframework.http.codec.multipart.FilePart> file) org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>
-
Constructor Details
-
UploadService
public UploadService()
-
-
Method Details
-
serveFile
public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> serveFile(String fileId, String filename) throws AuthenticationException - Throws:
AuthenticationException
-
getFileUrl
- Throws:
AuthenticationException
-
handleFileUpload
public reactor.core.publisher.Mono<Void> handleFileUpload(String fileId, reactor.core.publisher.Mono<org.springframework.http.codec.multipart.FilePart> file) throws AuthenticationException, ExecutionException, InterruptedException, TimeoutException
-