Class StorageController
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
org.springframework.http.HttpEntity<String>
createFilePublished
(org.springframework.web.multipart.MultipartFile data, String path, boolean overwrite) org.springframework.http.HttpEntity<String>
org.springframework.http.HttpEntity<String>
deleteFilePublished
(String path) void
getFilePublished
(jakarta.servlet.http.HttpServletResponse oRes, String path) org.springframework.http.HttpEntity<Response<Collection<DirectoryEntryInfo>>>
listPublished
(String dir) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0)
-
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 interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getServiceSpecies
- Specified by:
getServiceSpecies
in interfaceIntrospectableController
-
getService
- Specified by:
getService
in interfaceIntrospectableController
-
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
-
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
-