public class MediaContentResource extends AbstractResource<MediaModel>
MediaModel binary content
Allowed methods: POST, PUT| Modifier and Type | Field and Description |
|---|---|
protected MediaModel |
mediaModel |
httpHeaders, providers, request, resourceCtx, securityCtx, serviceLocator, uriInfo| Constructor and Description |
|---|
MediaContentResource() |
| Modifier and Type | Method and Description |
|---|---|
Response |
postMediaContent(java.io.InputStream inputStream)
HTTP POST
|
Response |
putMediaContent(java.io.InputStream inputStream)
HTTP PUT
|
protected MediaModel |
readResource(java.lang.String resourceId) |
void |
setMediaModel(MediaModel mediaModel) |
afterDelete, afterPost, afterPut, beforeDelete, beforePost, beforePut, createDeleteResponse, createGetResponse, createOrUpdatePostResource, createOrUpdateResource, createPostResource, createPostResponse, createPutResponse, createPutResponse, createResource, deleteResource, getEventActionFactory, getPagingStrategy, getParentResource, getPostCommandHandler, getPutCommandHandler, getRequest, getResourceId, getResourceValue, getResponse, getSecurityContext, getSecurityStrategy, getServiceLocator, getUriInfo, isAccessGranted, isAccessGrantedExternal, notifyAfterDelete, notifyAfterGet, notifyAfterPost, notifyAfterPut, notifyBeforeDelete, notifyBeforeGet, notifyBeforePost, notifyBeforePut, processDtoId, processException, readPostResource, setCachingStrategy, setDeleteMethod, setEventActionFactory, setGetMethod, setPagingStrategy, setParentResource, setPostCommandHandler, setPostMethod, setPutCommandHandler, setPutMethod, setRequestProcessChain, setResourceId, setResourceValue, setSecurityStrategy, setServiceLocatorprotected MediaModel mediaModel
public void setMediaModel(MediaModel mediaModel)
public Response postMediaContent(java.io.InputStream inputStream)
Responsepublic Response putMediaContent(java.io.InputStream inputStream)
Responseprotected MediaModel readResource(java.lang.String resourceId)
readResource in class AbstractResource<MediaModel>Copyright © 2018 SAP SE. All Rights Reserved.