@ContentRestController public class ContentEntityRestController extends AbstractContentPropertyController
| Constructor and Description |
|---|
ContentEntityRestController(org.springframework.context.ApplicationContext context,
ContentStoreService storeService,
StoreByteRangeHttpRequestHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteContent(javax.servlet.http.HttpServletResponse response,
String store,
String id) |
void |
getContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String store,
String id) |
org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> |
getContent(String store,
String id,
String mimeType) |
protected void |
handleMultipart(javax.servlet.http.HttpServletResponse response,
String store,
String id,
org.springframework.web.multipart.MultipartFile multiPart) |
void |
postMultipartContent(javax.servlet.http.HttpServletResponse response,
String store,
String id,
org.springframework.web.multipart.MultipartFile multiPart) |
void |
putContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String store,
String id) |
void |
putMultipartContent(javax.servlet.http.HttpServletResponse response,
String store,
String id,
org.springframework.web.multipart.MultipartFile multiPart) |
findAll, findContentPropertyObjectInSet, findOne, findOne, findRepositoryInformation, findRepositoryInformation, getContentProperty, getContentPropertyDefinition, save, setContentProperty@Autowired
public ContentEntityRestController(org.springframework.context.ApplicationContext context,
ContentStoreService storeService,
StoreByteRangeHttpRequestHandler handler)
@ContentHandlerMapping.StoreType(value="contentstore") @RequestMapping(value="/{store}/{id}", method=GET, headers={"accept!=application/hal+json","range"}) public void getContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @PathVariable String store, @PathVariable String id) throws org.springframework.web.HttpRequestMethodNotSupportedException
org.springframework.web.HttpRequestMethodNotSupportedException@ContentHandlerMapping.StoreType(value="contentstore") @RequestMapping(value="/{store}/{id}", method=GET) public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getContent(@PathVariable String store, @PathVariable String id, @RequestHeader(value="Accept",required=false) String mimeType) throws org.springframework.web.HttpRequestMethodNotSupportedException
org.springframework.web.HttpRequestMethodNotSupportedException@ContentHandlerMapping.StoreType(value="contentstore") @RequestMapping(value="/{store}/{id}", 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, @PathVariable String id) throws IOException, org.springframework.web.HttpRequestMethodNotSupportedException, InstantiationException, IllegalAccessException
IOExceptionorg.springframework.web.HttpRequestMethodNotSupportedExceptionInstantiationExceptionIllegalAccessException@ContentHandlerMapping.StoreType(value="contentstore") @RequestMapping(value="/{store}/{id}", method=PUT, headers="content-type=multipart/form-data") @ResponseBody public void putMultipartContent(javax.servlet.http.HttpServletResponse response, @PathVariable String store, @PathVariable String id, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile multiPart) throws IOException, org.springframework.web.HttpRequestMethodNotSupportedException, InstantiationException, IllegalAccessException
IOExceptionorg.springframework.web.HttpRequestMethodNotSupportedExceptionInstantiationExceptionIllegalAccessException@ContentHandlerMapping.StoreType(value="contentstore") @RequestMapping(value="/{store}/{id}", method=POST, headers="content-type=multipart/form-data") @ResponseBody public void postMultipartContent(javax.servlet.http.HttpServletResponse response, @PathVariable String store, @PathVariable String id, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile multiPart) throws IOException, org.springframework.web.HttpRequestMethodNotSupportedException, InstantiationException, IllegalAccessException
IOExceptionorg.springframework.web.HttpRequestMethodNotSupportedExceptionInstantiationExceptionIllegalAccessException@ContentHandlerMapping.StoreType(value="contentstore") @RequestMapping(value="/{store}/{id}", method=DELETE, headers="accept!=application/hal+json") public void deleteContent(javax.servlet.http.HttpServletResponse response, @PathVariable String store, @PathVariable String id) throws org.springframework.web.HttpRequestMethodNotSupportedException, IOException
org.springframework.web.HttpRequestMethodNotSupportedExceptionIOExceptionprotected void handleMultipart(javax.servlet.http.HttpServletResponse response,
String store,
String id,
org.springframework.web.multipart.MultipartFile multiPart)
throws org.springframework.web.HttpRequestMethodNotSupportedException,
IOException
org.springframework.web.HttpRequestMethodNotSupportedExceptionIOExceptionCopyright © 2018 Paul Warren. All rights reserved.