Package org.cxbox.core.file.controller
Interface CxboxFileController
-
- All Known Implementing Classes:
CxboxFileControllerSimple
public interface CxboxFileControllerAdd{@code
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default org.springframework.http.HttpEntity<byte[]>buildFileHttpEntity(byte[] content, String fileName, String fileType, boolean inline)org.springframework.http.HttpEntity<byte[]>download(String id, String source, boolean preview)Adddefault org.springframework.http.MediaTypegetMediaType(String type)CxboxResponseDTO<Void>remove(String id, String source)AddCxboxResponseDTO<? extends FileUploadDto>upload(org.springframework.web.multipart.MultipartFile file, String source)Add
-
-
-
Method Detail
-
upload
CxboxResponseDTO<? extends FileUploadDto> upload(@RequestParam("file") org.springframework.web.multipart.MultipartFile file, @RequestParam(value="source",required=false) String source)
Add{@code
-
download
org.springframework.http.HttpEntity<byte[]> download(@RequestParam("id") String id, @RequestParam(value="source",required=false) String source, @RequestParam(value="preview",required=false,defaultValue="false") boolean preview)Add{@code
-
remove
CxboxResponseDTO<Void> remove(@RequestParam("id") String id, @RequestParam("source") String source)
Add{@code
-
buildFileHttpEntity
default org.springframework.http.HttpEntity<byte[]> buildFileHttpEntity(byte[] content, String fileName, String fileType, boolean inline)
-
getMediaType
default org.springframework.http.MediaType getMediaType(String type)
-
-