Klasse BytimeControllerImpl

java.lang.Object
de.dlr.proseo.api.aipclient.rest.BytimeControllerImpl
Alle implementierten Schnittstellen:
BytimeController

@Component public class BytimeControllerImpl extends Object implements BytimeController
Retrieve a single product from a remote Long-term Archive by product type and time interval
Autor:
Dr. Thomas Bassler
  • 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 Schnittstelle BytimeController
      Parameter:
      productType - The product type
      startTime - The start of the sensing time interval
      stopTime - The end of the sensing time interval
      facility - The processing facility to store the downloaded product files in
      httpHeaders - 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