From 897dc000d5d5128d15de10bca957b57531b0097d Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Sat, 26 Feb 2011 21:48:51 -0800 Subject: [PATCH] made blobmetadata parser name accessible for testing --- .../ParseSystemAndUserMetadataFromHeaders.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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