Package org.vrspace.server.web
Class ContentManager
- java.lang.Object
-
- org.vrspace.server.web.ContentManager
-
@RestController @ConditionalOnProperty("org.vrspace.adminUI.enabled") public class ContentManager extends Object
Simple content manager, allows for browsing and uploading of files under org.vrspace.adminUI.contentRoot. Optionally activated when org.vrspace.adminUI.enabled=true.- Author:
- joe
-
-
Constructor Summary
Constructors Constructor Description ContentManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<byte[]>
get(javax.servlet.http.HttpServletRequest request)
FileList
list(org.springframework.web.multipart.MultipartFile[] uploadFiles, javax.servlet.http.HttpServletRequest request)
void
upload(javax.servlet.http.HttpServletRequest request, String fileName, int fileSize, org.springframework.web.multipart.MultipartFile fileData)
-
-
-
Method Detail
-
list
@PostMapping("/pub/**") public FileList list(@RequestParam(value="uploadFiles",required=false) org.springframework.web.multipart.MultipartFile[] uploadFiles, javax.servlet.http.HttpServletRequest request) throws IOException
- Throws:
IOException
-
get
@GetMapping("/pub/**") public org.springframework.http.ResponseEntity<byte[]> get(javax.servlet.http.HttpServletRequest request) throws IOException
- Throws:
IOException
-
upload
@PutMapping("/pub/**") public void upload(javax.servlet.http.HttpServletRequest request, String fileName, int fileSize, org.springframework.web.multipart.MultipartFile fileData) throws IOException
- Throws:
IOException
-
-