JCLOUDS-651: Azure support for conditional copies

This commit is contained in:
Andrew Gaul 2016-02-12 02:45:28 -08:00
parent cc8af838e8
commit 467f3483bc
1 changed files with 13 additions and 0 deletions

View File

@ -236,6 +236,19 @@ public class AzureBlobStore extends BaseBlobStore {
CopyOptions options) {
CopyBlobOptions.Builder azureOptions = CopyBlobOptions.builder();
if (options.ifMatch() != null) {
azureOptions.ifMatch(options.ifMatch());
}
if (options.ifNoneMatch() != null) {
azureOptions.ifNoneMatch(options.ifNoneMatch());
}
if (options.ifModifiedSince() != null) {
azureOptions.ifModifiedSince(options.ifModifiedSince());
}
if (options.ifUnmodifiedSince() != null) {
azureOptions.ifUnmodifiedSince(options.ifUnmodifiedSince());
}
Map<String, String> userMetadata = options.userMetadata();
if (userMetadata != null) {
azureOptions.overrideUserMetadata(userMetadata);