Interface ComplexProcessor
- All Superinterfaces:
Processor
Processor interface for handling an instance of a complex type, e.g., a complex property of an entity.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteComplex
(ODataRequest request, ODataResponse response, UriInfo uriInfo) Deletes complex-type value from an entity and puts the status into the response.void
readComplex
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads complex-type instance.void
updateComplex
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Update complex-type instance with send data in the persistence and puts content, status, and Location into the response.
-
Method Details
-
readComplex
void readComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException Reads complex-type instance. 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
-
updateComplex
void updateComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException Update complex-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
-
deleteComplex
void deleteComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException Deletes complex-type value from an entity and puts the status into the response. Deletion for complex-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
-