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, validateOptionspublic TechnicalEntityProcessor(DataProvider dataProvider, ServiceMetadata serviceMetadata)
public void readEntityCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) throws ODataApplicationException, ODataLibraryException
EntityCollectionProcessorreadEntityCollection in interface EntityCollectionProcessorrequest - 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 failureODataLibraryExceptionpublic void countEntityCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
CountEntityCollectionProcessortext/plain by default.countEntityCollection in interface CountEntityCollectionProcessorrequest - 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 failureODataLibraryExceptionpublic void readEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) throws ODataApplicationException, ODataLibraryException
EntityProcessorreadEntity in interface EntityProcessorrequest - 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 failureODataLibraryExceptionpublic void readMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
MediaEntityProcessorreadMediaEntity in interface MediaEntityProcessorrequest - 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 failureODataLibraryExceptionpublic void createMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
MediaEntityProcessorcreateMediaEntity in interface MediaEntityProcessorrequest - 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 failureODataLibraryExceptionpublic void createEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
EntityProcessorcreateEntity in interface EntityProcessorrequest - 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 failureODataLibraryExceptionpublic void updateEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
EntityProcessorupdateEntity in interface EntityProcessorrequest - 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 failureODataLibraryExceptionpublic void updateMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
MediaEntityProcessorupdateMediaEntity in interface MediaEntityProcessorrequest - 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 failureODataLibraryExceptionpublic void deleteEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataLibraryException, ODataApplicationException
EntityProcessordeleteEntity in interface EntityProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIODataLibraryExceptionODataApplicationException - if the service implementation encounters a failurepublic void deleteMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataLibraryException, ODataApplicationException
MediaEntityProcessordeleteMediaEntity in interface MediaEntityProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIODataLibraryExceptionODataApplicationException - if the service implementation encounters a failurepublic void readReference(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) throws ODataApplicationException, ODataLibraryException
ReferenceProcessorreadReference in interface ReferenceProcessorrequest - 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 failureODataLibraryExceptionpublic void createReference(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) throws ODataApplicationException, ODataLibraryException
ReferenceProcessorcreateReference in interface ReferenceProcessorrequest - 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 failureODataLibraryExceptionpublic void updateReference(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) throws ODataApplicationException, ODataLibraryException
ReferenceProcessorupdateReference in interface ReferenceProcessorrequest - 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 failureODataLibraryExceptionpublic void deleteReference(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException
ReferenceProcessordeleteReference in interface ReferenceProcessorrequest - 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
ReferenceCollectionProcessorreadReferenceCollection in interface ReferenceCollectionProcessorrequest - 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 failureODataLibraryExceptionCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.