jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 skeleton and bucket ops (#270)
Date Fri, 20 May 2016 22:56:22 GMT
> +   @RequestFilters(ReplacePayloadAccountId.class)
> +   @Consumes(APPLICATION_JSON)
> +   Bucket updateBucket(@PayloadParam("bucketId") String bucketId, @PayloadParam("bucketType")
BucketType bucketType);
> +
> +   @Named("b2_list_buckets")
> +   @POST
> +   @Path("/b2api/v1/b2_list_buckets")
> +   @Payload("{\"accountId\":\"{accountId}\"}")
> +   @RequestFilters(ReplacePayloadAccountId.class)
> +   @Consumes(APPLICATION_JSON)
> +   BucketList listBuckets();
> +
> +   static final class ReplacePayloadAccountId implements HttpRequestFilter {
> +      @Override
> +      public HttpRequest filter(HttpRequest request) throws HttpException {
> +         String accountId = request.getFirstHeaderOrNull("accountId");  // TODO: hack

See below.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/270/files/08f67d68c03760ce134ccf217c3b1ee4487ac318#r64118384
Mime
View raw message