Interface ReferenceProcessor
- All Superinterfaces:
Processor
Processor interface for handling a single instance of an Entity Reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createReference
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) Creates entity reference in the persistence and puts content, status, and Location into the response.void
deleteReference
(ODataRequest request, ODataResponse response, UriInfo uriInfo) Deletes reference to an entity from persistence and puts the status into the response.void
readReference
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads entity reference from persistence and put it as serialized content and status into the response.void
updateReference
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) Update entity reference in the persistence and puts content, status, and Location into the response.
-
Method Details
-
readReference
void readReference(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException Reads entity reference from persistence and put it as serialized content and status into the response.- 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
-
createReference
void createReference(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) throws ODataApplicationException, ODataLibraryException Creates entity reference 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 request- Throws:
ODataApplicationException
- if the service implementation encounters a failureODataLibraryException
-
updateReference
void updateReference(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) throws ODataApplicationException, ODataLibraryException Update entity reference 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 request- Throws:
ODataApplicationException
- if the service implementation encounters a failureODataLibraryException
-
deleteReference
void deleteReference(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException Deletes reference to an entity from persistence and puts the status into the response. Delete on a reference only removes the reference to and not the entity itself (see chapter "11.4.6.2 Remove a Reference to an Entity")- 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
-