use of org.jclouds.http.HttpRequest in project dhis2-core by dhis2.
the class JCloudsFileResourceContentStore method getSignedGetContentUri.
@Override
public URI getSignedGetContentUri(String key) {
BlobRequestSigner signer = blobStoreContext.getSigner();
if (!requestSigningSupported(signer)) {
return null;
}
HttpRequest httpRequest;
try {
httpRequest = signer.signGetBlob(config.container, key, FIVE_MINUTES_IN_SECONDS);
} catch (UnsupportedOperationException uoe) {
return null;
}
return httpRequest.getEndpoint();
}
Aggregations