class IngestExternalClientRest extends DefaultClient implements IngestExternalClient {

    public Response downloadObjectAsync(VitamContext vitamContext, String objectId,
        IngestCollection type)
        throws VitamClientException {

        ParametersChecker.checkParameter(BLANK_OBJECT_ID, objectId);
        ParametersChecker.checkParameter(BLANK_TYPE, type);

        Response response = null;
        VitamRequestBuilder request = get()
            .withPath(INGEST_URL + "/" + objectId + "/" + type.getCollectionName())
            .withHeaders(vitamContext.getHeaders())
            .withOctetAccept();
        try {
            response = make(request);
            check(response);
            return response;
        } catch (IngestExternalClientServerException | IngestExternalException e) {
            throw new VitamClientException(e);
        } catch (IngestExternalClientNotFoundException e) {
            return response;
        }
    }

      IngestExternalClientRest(IngestExternalClientFactory factory);

}