public interface PrimitiveValueProcessor extends PrimitiveProcessor
Modifier and Type | Method and Description |
---|---|
void |
deletePrimitiveValue(ODataRequest request,
ODataResponse response,
UriInfo uriInfo)
Deletes primitive-type raw value from an entity and puts the status into the response.
|
void |
readPrimitiveValue(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType responseFormat)
Reads raw value of a primitive-type instance, e.g., of a primitive property of an entity.
|
void |
updatePrimitiveValue(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Update primitive-type instance with sent raw data in the persistence and
puts content, status, and Location into the response.
|
deletePrimitive, readPrimitive, updatePrimitive
void readPrimitiveValue(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
null
, the service responds with 204 No Content.
If it is not available, for example due to permissions, the service responds with 404 Not Found.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 failureODataLibraryException
void updatePrimitiveValue(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
void deletePrimitiveValue(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
null
.request
- OData request object containing raw HTTP informationresponse
- OData response object for collecting response datauriInfo
- information of a parsed OData URIODataApplicationException
- if the service implementation encounters a failureODataLibraryException
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.