jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Kingsland <steve.kingsl...@opower.com>
Subject Re: Example of setting Blob ACL using S3 provider?
Date Fri, 26 Sep 2014 15:37:03 GMT
Thanks, now I understand the difference between APIs and providers better.
I had previously thought that I needed to create an S3Client instance via
contextBuilder.buildApi(S3Client.class). But it looks like I can get a
reference to it from the basic BlobStoreContext instead:

BlobStoreContext context =

S3Client s3Client = context.<RestContext<S3Client,

The only problem is that RestContext is deprecated (in Jclouds 1.6.3), and
I'm not sure how to get the the S3Client object using ApiContext instead.

*Steve Kingsland*

Senior Software Engineer

*Opower* <http://www.opower.com/>

*We’re hiring! See jobs here <http://www.opower.com/careers>*

On Fri, Sep 26, 2014 at 2:17 AM, Andrew Phillips <andrewp@apache.org> wrote:

> although I'm not entirely sure what the difference is between the
>> AWSS3Client
>> the docs are using, and the S3Client that I've used
> One is the API-specific client, the other the provider-specific client
> (see [1]). I.e. S3Client should work with all "S3-compatible" providers,
> whereas the AWSS3Client could expose extra functionality that *only* Amazon
> offers.
> Hope that helps!
> ap
> PS: PRs to update outdated docs much appreciated...thanks!
> [1] http://jclouds.apache.org/start/concepts/

View raw message