> + uploadDirToCDN.close();
> + }
> + }
> +
> + private void init(String[] args) {
> + // The provider configures jclouds To use the Rackspace Cloud (US)
> + // To use the Rackspace Cloud (UK) set the provider to "cloudfiles-uk"
> + String provider = "cloudfiles-us";
> +
> + String username = args[0];
> + String apiKey = args[1];
> +
> + BlobStoreContext context =
> ContextBuilder.newBuilder(provider).credentials(username, apiKey)
> + .buildView(BlobStoreContext.class);
> + storage = context.getBlobStore();
> + rackspace =
> context.unwrap(CloudFilesApiMetadata.CONTEXT_TOKEN).getApi();
These examples need to work with released versions of jclouds. unwrapApi isn't
in 1.6.x so I can't use it here. :(
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/11/files#r5438938