com.basho.riak.client.http.response
Class ListBucketsResponse
java.lang.Object
com.basho.riak.client.http.response.HttpResponseDecorator
com.basho.riak.client.http.response.ListBucketsResponse
- All Implemented Interfaces:
- HttpResponse
public class ListBucketsResponse
- extends HttpResponseDecorator
- implements HttpResponse
- Author:
- russell
Methods inherited from class com.basho.riak.client.http.response.HttpResponseDecorator |
close, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, getHttpResponse, getKey, getStatusCode, getStream, isError, isStreamed, isSuccess |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.basho.riak.client.http.response.HttpResponse |
close, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, getHttpResponse, getKey, getStatusCode, getStream, isError, isStreamed, isSuccess |
ListBucketsResponse
public ListBucketsResponse(HttpResponse r)
throws JSONException,
IOException
- Create a list buckets response that parses the resppns ebody json into a
set of buckets.
- Parameters:
r
-
- Throws:
JSONException
IOException
getBuckets
public Set<String> getBuckets()
- Get a *copy* of the Set of buckets returned.
- Returns:
- the buckets
Copyright © 2012. All Rights Reserved.