public class TechnicalEntityProcessor extends TechnicalProcessor implements EntityCollectionProcessor, ActionEntityCollectionProcessor, CountEntityCollectionProcessor, EntityProcessor, ActionEntityProcessor, MediaEntityProcessor
dataProvider, odata
Constructor and Description |
---|
TechnicalEntityProcessor(DataProvider dataProvider) |
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 send media data 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 |
processActionEntity(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Process an action which has as return type an entity.
|
void |
processActionEntityCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Process an action which has as return type a collection of entities.
|
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 |
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.
|
getEdmEntitySet, init, validateOptions
public TechnicalEntityProcessor(DataProvider dataProvider)
public void readEntityCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) throws ODataApplicationException, SerializerException
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 failureSerializerException
- if serialization failedpublic void processActionEntityCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
ActionEntityCollectionProcessor
processActionEntityCollection
in interface ActionEntityCollectionProcessor
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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedpublic void countEntityCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, SerializerException
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 failureSerializerException
- if serialization failedpublic void readEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) throws ODataApplicationException, SerializerException
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 failureSerializerException
- if serialization failedpublic void readMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, SerializerException
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 failureSerializerException
- if serialization failedpublic void createMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedpublic void createEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedpublic void updateEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedpublic void updateMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedpublic void deleteEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws 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 URIODataApplicationException
- if the service implementation encounters a failurepublic void processActionEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
ActionEntityProcessor
processActionEntity
in interface ActionEntityProcessor
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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.