Interface PrimitiveProcessor
- All Superinterfaces:
Processor
- All Known Subinterfaces:
PrimitiveValueProcessor
Processor interface for handling an instance of a primitive type, e.g., a primitive property of an entity.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deletePrimitive
(ODataRequest request, ODataResponse response, UriInfo uriInfo) Deletes primitive-type value from an entity and puts the status into the response.void
readPrimitive
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads primitive-type instance.void
updatePrimitive
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Update primitive-type instance with send data in the persistence and puts content, status, and Location into the response.
-
Method Details
-
readPrimitive
void readPrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException Reads primitive-type instance. If its value isnull
, the service responds with 204 No Content. If it is not available, for example due to permissions, the service responds with 404 Not Found.- Parameters:
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 negotiation- Throws:
ODataApplicationException
- if the service implementation encounters a failureODataLibraryException
-
updatePrimitive
void updatePrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException Update primitive-type instance with send data in the persistence and puts content, status, and Location into the response.- Parameters:
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 negotiation- Throws:
ODataApplicationException
- if the service implementation encounters a failureODataLibraryException
-
deletePrimitive
void deletePrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException Deletes primitive-type value from an entity and puts the status into the response. Deletion for primitive-type values is equal to set the value toNULL
(see chapter "11.4.9.2 Set a Value to Null")- Parameters:
request
- OData request object containing raw HTTP informationresponse
- OData response object for collecting response datauriInfo
- information of a parsed OData URI- Throws:
ODataApplicationException
- if the service implementation encounters a failureODataLibraryException
-