public class TechnicalEntityProcessor extends TechnicalProcessor implements EntityCollectionProcessor, CountEntityCollectionProcessor, EntityProcessor, MediaEntityProcessor, ReferenceCollectionProcessor, ReferenceProcessor
dataProvider, odata, serviceMetadata
Constructor and Description |
---|
TechnicalEntityProcessor(DataProvider dataProvider,
ServiceMetadata serviceMetadata) |
Modifier and Type | Method and Description |
---|---|
void |
countEntityCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo)
Counts entities from persistence and puts serialized content and status into the response.
|
void |
createEntity(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Creates an entity with send data in the persistence and puts content, status, and Location into the response.
|
void |
createMediaEntity(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Creates an entity with sent media data in the persistence and puts content, status and Location into the response.
|
void |
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 |
deleteEntity(ODataRequest request,
ODataResponse response,
UriInfo uriInfo)
Deletes entity from persistence and puts the status into the response.
|
void |
deleteMediaEntity(ODataRequest request,
ODataResponse response,
UriInfo uriInfo)
Deletes entity media data and associated entity from persistence and puts the status 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 |
readEntity(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestedContentType)
Reads entity data from persistence and puts serialized content and status into the response.
|
void |
readEntityCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestedContentType)
Reads entities data from persistence and puts serialized content and status 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 |
readReference(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestedContentType)
Reads entity reference from persistence and put it as serialized content and status into the response.
|
void |
readReferenceCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestedContentType)
Reads entity references from persistence and put them as serialized content and with
according status into the response.
|
void |
updateEntity(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Update entity data with send data in the persistence and puts content, status, and Location 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.
|
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.
|
blockBoundActions, checkRequestFormat, getEdmEntitySet, getLastNavigation, init, isODataMetadataNone, readEntity, readEntity, readEntityCollection, validateOptions
public TechnicalEntityProcessor(DataProvider dataProvider, ServiceMetadata serviceMetadata)
public void readEntityCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) throws ODataApplicationException, ODataLibraryException
EntityCollectionProcessor
readEntityCollection
in interface EntityCollectionProcessor
request
- OData request object containing raw HTTP informationresponse
- OData response object for collecting response datauriInfo
- information of a parsed OData URIrequestedContentType
- requested content type after content negotiationODataApplicationException
- if the service implementation encounters a failureODataLibraryException
public void countEntityCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
CountEntityCollectionProcessor
text/plain
by default.countEntityCollection
in interface CountEntityCollectionProcessor
request
- OData request object containing raw HTTP information.response
- OData response object for collecting response datauriInfo
- information of a parsed OData URIODataApplicationException
- if the service implementation encounters a failureODataLibraryException
public void readEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) throws ODataApplicationException, ODataLibraryException
EntityProcessor
readEntity
in interface EntityProcessor
request
- OData request object containing raw HTTP informationresponse
- OData response object for collecting response datauriInfo
- information of a parsed OData URIrequestedContentType
- requested content type after content negotiationODataApplicationException
- if the service implementation encounters a failureODataLibraryException
public void readMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
MediaEntityProcessor
readMediaEntity
in interface MediaEntityProcessor
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
public void createMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
MediaEntityProcessor
createMediaEntity
in interface MediaEntityProcessor
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
public void createEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
EntityProcessor
createEntity
in interface EntityProcessor
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
public void updateEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
EntityProcessor
updateEntity
in interface EntityProcessor
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
public void updateMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
MediaEntityProcessor
updateMediaEntity
in interface MediaEntityProcessor
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
public void deleteEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataLibraryException, ODataApplicationException
EntityProcessor
deleteEntity
in interface EntityProcessor
request
- OData request object containing raw HTTP informationresponse
- OData response object for collecting response datauriInfo
- information of a parsed OData URIODataLibraryException
ODataApplicationException
- if the service implementation encounters a failurepublic void deleteMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataLibraryException, ODataApplicationException
MediaEntityProcessor
deleteMediaEntity
in interface MediaEntityProcessor
request
- OData request object containing raw HTTP informationresponse
- OData response object for collecting response datauriInfo
- information of a parsed OData URIODataLibraryException
ODataApplicationException
- if the service implementation encounters a failurepublic void readReference(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) throws ODataApplicationException, ODataLibraryException
ReferenceProcessor
readReference
in interface ReferenceProcessor
request
- OData request object containing raw HTTP informationresponse
- OData response object for collecting response datauriInfo
- information of a parsed OData URIrequestedContentType
- requested content type after content negotiationODataApplicationException
- if the service implementation encounters a failureODataLibraryException
public void createReference(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) throws ODataApplicationException, ODataLibraryException
ReferenceProcessor
createReference
in interface ReferenceProcessor
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 requestODataApplicationException
- if the service implementation encounters a failureODataLibraryException
public void updateReference(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) throws ODataApplicationException, ODataLibraryException
ReferenceProcessor
updateReference
in interface ReferenceProcessor
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 requestODataApplicationException
- if the service implementation encounters a failureODataLibraryException
public void deleteReference(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException
ReferenceProcessor
deleteReference
in interface ReferenceProcessor
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 failurepublic void readReferenceCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) throws ODataApplicationException, ODataLibraryException
ReferenceCollectionProcessor
readReferenceCollection
in interface ReferenceCollectionProcessor
request
- OData request object containing raw HTTP informationresponse
- OData response object for collecting response datauriInfo
- information of a parsed OData URIrequestedContentType
- requested content type after content negotiationODataApplicationException
- if the service implementation encounters a failureODataLibraryException
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.