Package de.dlr.proseo.api.aipclient.rest
Klasse BynameControllerImpl
java.lang.Object
de.dlr.proseo.api.aipclient.rest.BynameControllerImpl
- Alle implementierten Schnittstellen:
BynameController
Retrieve a single product from a remote Long-term Archive by file name
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.springframework.http.ResponseEntity
<RestProduct> downloadByName
(String filename, String facility, org.springframework.http.HttpHeaders httpHeaders) Provide the product with the given file name at the given processing facility.
-
Konstruktordetails
-
BynameControllerImpl
public BynameControllerImpl()
-
-
Methodendetails
-
downloadByName
public org.springframework.http.ResponseEntity<RestProduct> downloadByName(String filename, String facility, org.springframework.http.HttpHeaders httpHeaders) Provide the product with the given file name 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 file name, the first response is returned to the caller, then download from the LTA and ingested at the given processing facility.- Angegeben von:
downloadByName
in SchnittstelleBynameController
- Parameter:
filename
- The (unique) product file name to search forfacility
- 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 file with the given name could be found either locally or in any configured LTA, or HTTP status "BAD_REQUEST", if an invalid processing facility was given, or HTTP status "INTERNAL_SERVER_ERROR", if the communication to the Ingestor failed or an unexpected exception occurred
-