Package de.dlr.proseo.api.aipclient.rest
Klasse BytimeControllerImpl
java.lang.Object
de.dlr.proseo.api.aipclient.rest.BytimeControllerImpl
- Alle implementierten Schnittstellen:
BytimeController
Retrieve a single product from a remote Long-term Archive by product type and time interval
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.springframework.http.ResponseEntity
<RestProduct> downloadBySensingTime
(String productType, String startTime, String stopTime, String facility, org.springframework.http.HttpHeaders httpHeaders) Provide the product with the given product type and the exact sensing start and stop times at the given processing facility.
-
Konstruktordetails
-
BytimeControllerImpl
public BytimeControllerImpl()
-
-
Methodendetails
-
downloadBySensingTime
public org.springframework.http.ResponseEntity<RestProduct> downloadBySensingTime(String productType, String startTime, String stopTime, String facility, org.springframework.http.HttpHeaders httpHeaders) Provide the product with the given product type and the exact sensing start and stop times at the given processing facility. If it already is available there, do nothing and just return the product metadata. If it is not available locally, query all configured LTAs for a product with the given search criteria. The first response is evaluated: If multiple products fulfilling the criteria are found in the LTA, the product with the most recent generation time will be used. In the (unlikely) case of several products having the same generation time, the product with the greatest file name (alphanumeric string comparison) will be used. The product metadata is returned to the caller, then the product is downloaded from the LTA and ingested at the given processing facility.- Angegeben von:
downloadBySensingTime
in SchnittstelleBytimeController
- Parameter:
productType
- The product typestartTime
- The start of the sensing time intervalstopTime
- The end of the sensing time intervalfacility
- The processing facility to store the downloaded product files inhttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- HTTP status "OK" and a Json representation of the product provided or HTTP status "NOT_FOUND", if no product matching the given selection criteria was found, or HTTP status "BAD_REQUEST", if an invalid facility name, product type or sensing time was given, or HTTP status "INTERNAL_SERVER_ERROR", if the communication to the Ingestor failed or an unexpected exception occurred
-