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