Class 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 Detail

      • ContentManager

        public ContentManager()
    • 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