Package de.dlr.proseo.api.prip.odata
Class ProductEntityCollectionProcessor
java.lang.Object
de.dlr.proseo.api.prip.odata.ProductEntityCollectionProcessor
- All Implemented Interfaces:
org.apache.olingo.server.api.processor.EntityCollectionProcessor,org.apache.olingo.server.api.processor.Processor
@Component
@Transactional(isolation=REPEATABLE_READ,
readOnly=true)
public class ProductEntityCollectionProcessor
extends Object
implements org.apache.olingo.server.api.processor.EntityCollectionProcessor
Retrieve product collections from the prosEO metadata database (via the Ingestor component) with additional information from the
prosEO Storage Manager
- Author:
- Dr. Thomas Bassler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(org.apache.olingo.server.api.OData odata, org.apache.olingo.server.api.ServiceMetadata serviceMetadata) Initializes the processor for each HTTP request - response cycle (Copied from interface definition)voidreadEntityCollection(org.apache.olingo.server.api.ODataRequest request, org.apache.olingo.server.api.ODataResponse response, org.apache.olingo.server.api.uri.UriInfo uriInfo, org.apache.olingo.commons.api.format.ContentType responseFormat) Reads entities data from persistence and puts serialized content and status into the response.
-
Constructor Details
-
ProductEntityCollectionProcessor
public ProductEntityCollectionProcessor()
-
-
Method Details
-
init
public void init(org.apache.olingo.server.api.OData odata, org.apache.olingo.server.api.ServiceMetadata serviceMetadata) Initializes the processor for each HTTP request - response cycle (Copied from interface definition)- Specified by:
initin interfaceorg.apache.olingo.server.api.processor.Processor- Parameters:
odata- Olingo's root object, acting as a factory for various object typesserviceMetadata- metadata of the OData service like the EDM that have to be created before the OData request handling takes place
-
readEntityCollection
public void readEntityCollection(org.apache.olingo.server.api.ODataRequest request, org.apache.olingo.server.api.ODataResponse response, org.apache.olingo.server.api.uri.UriInfo uriInfo, org.apache.olingo.commons.api.format.ContentType responseFormat) throws org.apache.olingo.server.api.ODataApplicationException, org.apache.olingo.server.api.ODataLibraryException Reads entities data from persistence and puts serialized content and status into the response.- Specified by:
readEntityCollectionin interfaceorg.apache.olingo.server.api.processor.EntityCollectionProcessor- 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:
org.apache.olingo.server.api.ODataApplicationException- if the service implementation encounters a failureorg.apache.olingo.server.api.ODataLibraryException- if the Olingo OData library detects an error
-