> +      Blob blob = blobStore.blobBuilder(blobName)
> +            .payload(ByteSource.empty())
> +            .contentLength(0)
> +            .build();
> +      blobStore.putBlob(containerName, blob);
> +      try {
> +         blob = blobStore.getBlob(containerName, blobName);
> +         blob.getPayload().close();
> +      } finally {
> +         blobStore.removeBlob(containerName, blobName);
> +      }
> +
> +      String dateString = Iterables.getFirst(blob.getAllHeaders().get(
> +            HttpHeaders.DATE), /*defaultValue=*/ null);
> +      if (dateString == null) {
> +         throw new Exception("Request does not have date header");

Is there a more specific "CommandException" or something we can throw here?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-karaf/pull/37/files#r10064038

Reply via email to