> + 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();
Okay.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/11/files#r5440074