Package de.dlr.proseo.api.prip.odata
Klasse ProductEntityCollectionProcessor
java.lang.Object
de.dlr.proseo.api.prip.odata.ProductEntityCollectionProcessor
- Alle implementierten Schnittstellen:
org.apache.olingo.server.api.processor.EntityCollectionProcessor
,org.apache.olingo.server.api.processor.Processor
@Component
@Transactional
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
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
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.
-
Konstruktordetails
-
ProductEntityCollectionProcessor
public ProductEntityCollectionProcessor()
-
-
Methodendetails
-
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)- Angegeben von:
init
in Schnittstelleorg.apache.olingo.server.api.processor.Processor
- Parameter:
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.- Angegeben von:
readEntityCollection
in Schnittstelleorg.apache.olingo.server.api.processor.EntityCollectionProcessor
- Parameter:
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- Löst aus:
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
-