@ContentRestController public class StoreRestController extends AbstractContentPropertyController
| Constructor and Description |
|---|
StoreRestController(ContentStoreService storeService,
StoreByteRangeHttpRequestHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String store) |
void |
getContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String store) |
protected void |
handleMultipart(String store,
String path,
org.springframework.web.multipart.MultipartFile multiPart) |
void |
postMultipartContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String store,
org.springframework.web.multipart.MultipartFile multiPart) |
void |
putContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String store) |
void |
putMultipartContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String store,
org.springframework.web.multipart.MultipartFile multiPart) |
findAll, findContentPropertyObjectInSet, findOne, findOne, findRepositoryInformation, findRepositoryInformation, getContentProperty, getContentPropertyDefinition, save, setContentProperty@Autowired public StoreRestController(ContentStoreService storeService, StoreByteRangeHttpRequestHandler handler)
@ContentHandlerMapping.StoreType(value="store") @RequestMapping(value="/{store}/**", method=GET) public void getContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @PathVariable String store) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOException@ContentHandlerMapping.StoreType(value="store") @RequestMapping(value="/{store}/**", method=PUT, headers={"content-type!=multipart/form-data","accept!=application/hal+json"}) @ResponseBody public void putContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @PathVariable String store) throws IOException, org.springframework.web.HttpRequestMethodNotSupportedException, InstantiationException, IllegalAccessException
IOExceptionorg.springframework.web.HttpRequestMethodNotSupportedExceptionInstantiationExceptionIllegalAccessException@ContentHandlerMapping.StoreType(value="store") @RequestMapping(value="/{store}/**", method=PUT, headers="content-type=multipart/form-data") @ResponseBody public void putMultipartContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @PathVariable String store, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile multiPart) throws IOException, org.springframework.web.HttpRequestMethodNotSupportedException, InstantiationException, IllegalAccessException
IOExceptionorg.springframework.web.HttpRequestMethodNotSupportedExceptionInstantiationExceptionIllegalAccessException@ContentHandlerMapping.StoreType(value="store") @RequestMapping(value="/{store}/**", method=POST, headers="content-type=multipart/form-data") @ResponseBody public void postMultipartContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @PathVariable String store, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile multiPart) throws IOException, org.springframework.web.HttpRequestMethodNotSupportedException, InstantiationException, IllegalAccessException
IOExceptionorg.springframework.web.HttpRequestMethodNotSupportedExceptionInstantiationExceptionIllegalAccessException@ContentHandlerMapping.StoreType(value="store") @RequestMapping(value="/{store}/**", method=DELETE, headers="accept!=application/hal+json") public void deleteContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @PathVariable String store) throws org.springframework.web.HttpRequestMethodNotSupportedException, IOException
org.springframework.web.HttpRequestMethodNotSupportedExceptionIOExceptionprotected void handleMultipart(String store, String path, org.springframework.web.multipart.MultipartFile multiPart) throws org.springframework.web.HttpRequestMethodNotSupportedException, IOException
org.springframework.web.HttpRequestMethodNotSupportedExceptionIOExceptionCopyright © 2018 Paul Warren. All rights reserved.