diff --git a/blobstore/src/main/java/org/jclouds/blobstore/functions/ParseSystemAndUserMetadataFromHeaders.java b/blobstore/src/main/java/org/jclouds/blobstore/functions/ParseSystemAndUserMetadataFromHeaders.java index d925af97d7..b09c821b64 100755 --- a/blobstore/src/main/java/org/jclouds/blobstore/functions/ParseSystemAndUserMetadataFromHeaders.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/functions/ParseSystemAndUserMetadataFromHeaders.java @@ -53,7 +53,7 @@ public class ParseSystemAndUserMetadataFromHeaders implements Function metadataFactory; - private String key; + private String name; @Inject public ParseSystemAndUserMetadataFromHeaders(Provider metadataFactory, DateService dateParser, @@ -65,11 +65,12 @@ public class ParseSystemAndUserMetadataFromHeaders implements Function, "note this handler requires a GeneratedHttpRequest"); - setName(getNameFor(GeneratedHttpRequest.class.cast(request))); - return this; + return setName(getNameFor(GeneratedHttpRequest.class.cast(request))); } - @VisibleForTesting - void setName(String key) { - this.key = checkNotNull(key, "key"); + public ParseSystemAndUserMetadataFromHeaders setName(String name) { + this.name = checkNotNull(name, "name"); + return this; } } \ No newline at end of file