java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.StorageController
All Implemented Interfaces:
IntrospectableController, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Controller public class StorageController extends Object implements org.springframework.context.ApplicationContextAware, IntrospectableController
  • Constructor Details

    • StorageController

      public StorageController()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getServiceSpecies

      public ServiceSpecies getServiceSpecies()
      Specified by:
      getServiceSpecies in interface IntrospectableController
    • getService

      public Storage getService()
      Specified by:
      getService in interface IntrospectableController
    • deleteFilePublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Storage/deleteFile", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteFilePublished(@RequestParam("path") String path) throws IOException
      Throws:
      IOException
    • createDirectoryPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Storage/createDirectory", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> createDirectoryPublished(@RequestParam("dir") String dir)
    • listPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Storage/list", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<DirectoryEntryInfo>>> listPublished(@RequestParam("dir") String dir)
    • deleteDirectoryPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Storage/deleteDirectory", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteDirectoryPublished(@RequestParam("dir") String dir) throws IOException
      Throws:
      IOException
    • getFilePublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Storage/getFile", method=GET, produces="application/json;charset=UTF-8") public void getFilePublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam("path") String path) throws IOException
      Throws:
      IOException
    • createFilePublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Storage/createFile", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> createFilePublished(@RequestParam("data") org.springframework.web.multipart.MultipartFile data, @RequestParam("path") String path, @RequestParam(value="overwrite",required=false) boolean overwrite) throws IOException
      Throws:
      IOException