Commit 829e1a86 authored by granier's avatar granier
Browse files

Ajout de getManifest

parent 93f12eba
......@@ -61,6 +61,20 @@ public class IngestRequest extends AbstractVitamApiProxyRequest {
*/
public HttpResponse<String> getATR(RequesterInfo requesterInfo, String requestId)
throws URISyntaxException, IOException, InterruptedException {
return get(requesterInfo, "ingests/" + requestId + "/archivetransferreply", null, "Content-Type", "application/octet-stream");
return get(requesterInfo, "ingests/" + requestId + "/archivetransferreply", null, "Content-Type", "application/octet-stream", "Accept", "*/*");
}
/**
* Request to retreive original manifest
* @param requesterInfo
* @param requestId
* @return
* @throws URISyntaxException
* @throws IOException
* @throws InterruptedException
*/
public HttpResponse<String> getManifest(RequesterInfo requesterInfo, String requestId)
throws URISyntaxException, IOException, InterruptedException {
return get(requesterInfo, "ingests/" + requestId + "/manifests", null, "Content-Type", "application/octet-stream", "Accept", "*/*");
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment