public class TechnicalProcessor extends Object implements EntityCollectionProcessor, EntityProcessor
Constructor and Description |
---|
TechnicalProcessor(DataProvider dataProvider) |
Modifier and Type | Method and Description |
---|---|
void |
init(OData odata,
Edm edm)
Initialize processor for each http request - response cycle.
|
void |
readCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestedContentType)
Read entities data from persistency and puts serialized content and status into the response.
|
void |
readEntity(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestedContentType)
Read entity data from persistency and puts serialized content and status into the response.
|
public TechnicalProcessor(DataProvider dataProvider)
public void init(OData odata, Edm edm)
Processor
public void readCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType)
EntityCollectionProcessor
readCollection
in interface EntityCollectionProcessor
request
- - OData request object containing raw http information.response
- - OData response object for collecting response datauriInfo
- - information of a parsed OData urirequestedContentType
- - requested content type after content negotiationpublic void readEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType)
EntityProcessor
readEntity
in interface EntityProcessor
request
- - OData request object containing raw http information.response
- - OData response object for collecting response datauriInfo
- - information of a parsed OData uriCopyright © 2013–2014 The Apache Software Foundation. All rights reserved.