> +         uploadDirToCDN.enableCdnContainer(args[3]);
> +      }
> +      catch (Exception e) {
> +         e.printStackTrace();
> +      }
> +      finally {         
> +         uploadDirToCDN.close();
> +      }
> +   }
> +   
> +   public UploadDirectoryToCDN(String username, String apiKey) {
> +      BlobStoreContext context = ContextBuilder.newBuilder(PROVIDER)
> +            .credentials(username, apiKey)
> +            .buildView(BlobStoreContext.class);
> +      storage = context.getBlobStore();
> +      rackspace = 
> context.unwrap(CloudFilesApiMetadata.CONTEXT_TOKEN).getApi();

> But these examples need to work with officially released versions of jclouds, 
> not snapshots. unwrapApi isn't in 1.6.x so I can't use it 
> here

Ah, like so. Perhaps then add a comment such as
```
// from jclouds 1.7.0, can be written as context.unwrapApi(...)
```
?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/11/files#r5439900

Reply via email to