@Controller public class FileStorageController extends Object
| Constructor and Description |
|---|
FileStorageController(FileStorageManager fileStorageManager,
UploadService uploadService) |
| Modifier and Type | Method and Description |
|---|---|
void |
readFile(String id,
String type,
Integer thumbnailMaxHeight,
javax.servlet.http.HttpServletResponse response) |
org.springframework.http.ResponseEntity<com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableMap<String,Object>>> |
saveFile(org.springframework.web.multipart.MultipartHttpServletRequest request) |
public FileStorageController(FileStorageManager fileStorageManager, UploadService uploadService)
@RequestMapping(value="/file",
method=POST,
consumes="multipart/form-data",
produces="application/json")
@ResponseBody
public org.springframework.http.ResponseEntity<com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableMap<String,Object>>> saveFile(org.springframework.web.multipart.MultipartHttpServletRequest request)
@RequestMapping(value="/file/{id}",
method=GET)
@ResponseBody
public void readFile(@PathVariable
String id,
@RequestParam(required=false)
String type,
@RequestParam(defaultValue="0")
Integer thumbnailMaxHeight,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.