@RestController
@RequestMapping(value="/files")
public class FileController
extends java.lang.Object
| Constructor and Description |
|---|
FileController(DefaultFileService defaultFileService) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
copyFile(javax.servlet.http.HttpServletRequest request,
java.nio.file.Path target) |
java.lang.String |
createFile(javax.servlet.http.HttpServletRequest request,
boolean isDirectory) |
void |
deleteFile(javax.servlet.http.HttpServletRequest request) |
org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> |
downloadFile(javax.servlet.http.HttpServletRequest request) |
java.util.List<java.lang.String> |
getFiles(javax.servlet.http.HttpServletRequest request) |
java.lang.String |
moveFile(javax.servlet.http.HttpServletRequest request,
java.nio.file.Path target) |
java.lang.String |
renameFile(javax.servlet.http.HttpServletRequest request,
java.lang.String name) |
java.lang.String |
saveFile(javax.servlet.http.HttpServletRequest request,
byte[] newContent) |
java.lang.String |
uploadFile(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile file) |
public FileController(DefaultFileService defaultFileService)
@GetMapping(value="/**")
public java.util.List<java.lang.String> getFiles(javax.servlet.http.HttpServletRequest request)
throws java.io.IOException
java.io.IOException@GetMapping(value="/file/**")
public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> downloadFile(javax.servlet.http.HttpServletRequest request)
throws java.io.IOException
java.io.IOException@PostMapping(value="/upload/**")
public java.lang.String uploadFile(javax.servlet.http.HttpServletRequest request,
@RequestParam
org.springframework.web.multipart.MultipartFile file)
throws java.io.IOException
java.io.IOException@PostMapping(value="/**")
public java.lang.String createFile(javax.servlet.http.HttpServletRequest request,
@RequestParam
boolean isDirectory)
throws java.io.IOException
java.io.IOException@PostMapping(value="/copy/**")
public java.lang.String copyFile(javax.servlet.http.HttpServletRequest request,
@RequestParam
java.nio.file.Path target)
throws java.io.IOException
java.io.IOException@PutMapping(value="/**")
public java.lang.String saveFile(javax.servlet.http.HttpServletRequest request,
@RequestBody
byte[] newContent)
throws java.io.IOException
java.io.IOException@PutMapping(value="/move/**")
public java.lang.String moveFile(javax.servlet.http.HttpServletRequest request,
@RequestParam
java.nio.file.Path target)
throws java.io.IOException
java.io.IOException@PutMapping(value="/rename/**")
public java.lang.String renameFile(javax.servlet.http.HttpServletRequest request,
@RequestParam
java.lang.String name)
throws java.io.IOException
java.io.IOException@DeleteMapping(value="/**")
public void deleteFile(javax.servlet.http.HttpServletRequest request)
throws java.io.IOException
java.io.IOException