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. NOT MAINTAINED, TO BE REMOVED
Author:
joe
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<byte[]>
    get(jakarta.servlet.http.HttpServletRequest request)
     
    list(org.springframework.web.multipart.MultipartFile[] uploadFiles, jakarta.servlet.http.HttpServletRequest request)
     
    void
    upload(jakarta.servlet.http.HttpServletRequest request, String fileName, int fileSize, org.springframework.web.multipart.MultipartFile fileData)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContentManager

      public ContentManager()
  • Method Details

    • list

      @PostMapping("/pub/**") public FileList list(@RequestParam(value="uploadFiles",required=false) org.springframework.web.multipart.MultipartFile[] uploadFiles, jakarta.servlet.http.HttpServletRequest request) throws IOException
      Throws:
      IOException
    • get

      @GetMapping("/pub/**") public org.springframework.http.ResponseEntity<byte[]> get(jakarta.servlet.http.HttpServletRequest request) throws IOException
      Throws:
      IOException
    • upload

      @PutMapping("/pub/**") public void upload(jakarta.servlet.http.HttpServletRequest request, String fileName, int fileSize, org.springframework.web.multipart.MultipartFile fileData) throws IOException
      Throws:
      IOException