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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    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)
    Reads entities data from persistence and puts serialized content and status into the response.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      init in interface org.apache.olingo.server.api.processor.Processor
      Parameters:
      odata - Olingo's root object, acting as a factory for various object types
      serviceMetadata - 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:
      readEntityCollection in interface org.apache.olingo.server.api.processor.EntityCollectionProcessor
      Parameters:
      request - OData request object containing raw HTTP information
      response - OData response object for collecting response data
      uriInfo - information of a parsed OData URI
      responseFormat - requested content type after content negotiation
      Throws:
      org.apache.olingo.server.api.ODataApplicationException - if the service implementation encounters a failure
      org.apache.olingo.server.api.ODataLibraryException - if the Olingo OData library detects an error