public interface MediaEntityProcessor extends EntityProcessor
Modifier and Type | Method and Description |
---|---|
void |
createMediaEntity(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Creates an entity with send media data in the persistence and puts content, status and Location into the response.
|
void |
readMediaEntity(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType responseFormat)
Reads entity media data from persistence and puts content and status into the response.
|
void |
updateMediaEntity(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Updates entity media data in the persistence and puts content and status into the response.
|
createEntity, deleteEntity, readEntity, updateEntity
void readMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, SerializerException
request
- OData request object containing raw HTTP informationresponse
- OData response object for collecting response datauriInfo
- information of a parsed OData URIresponseFormat
- requested content type after content negotiationODataApplicationException
- if the service implementation encounters a failureSerializerException
- if serialization failedvoid createMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
request
- OData request object containing raw HTTP informationresponse
- OData response object for collecting response datauriInfo
- information of a parsed OData URIrequestFormat
- content type of body sent with requestresponseFormat
- requested content type after content negotiationODataApplicationException
- if the service implementation encounters a failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedvoid updateMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
request
- OData request object containing raw HTTP informationresponse
- OData response object for collecting response datauriInfo
- information of a parsed OData URIrequestFormat
- content type of body sent with requestresponseFormat
- requested content type after content negotiationODataApplicationException
- if the service implementation encounters a failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.