jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-google] JCLOUDS-458:Added Blobstore Abstraction (#48)
Date Sat, 20 Sep 2014 03:13:53 GMT
> +               .userMetadata(gcsObject.getAllMetadata()).build();
> +      blob.getMetadata().setContainer(container);
> +      blob.getMetadata().setLastModified(gcsObject.getUpdated());
> +      blob.getMetadata().setETag(gcsObject.getEtag());
> +      blob.getMetadata().setPublicUri(gcsObject.getMediaLink());
> +      blob.getMetadata().setUserMetadata(gcsObject.getAllMetadata());
> +      blob.getMetadata().setUri(gcsObject.getSelfLink());
> +      blob.getMetadata().setId(gcsObject.getId());
> +      return blob;
> +   }
> +
> +   @Override
> +   public void removeBlob(String container, String name) {
> +      String urlName;
> +      try {
> +         urlName = name.contains("/") ? URLEncoder.encode(name, Charsets.UTF_8.toString())
: name;

See above comment

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/48/files#r17817517
Mime
View raw message