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