com.basho.riak.client.http.response
Class ListBucketsResponse

java.lang.Object
  extended by com.basho.riak.client.http.response.HttpResponseDecorator
      extended by com.basho.riak.client.http.response.ListBucketsResponse
All Implemented Interfaces:
HttpResponse

public class ListBucketsResponse
extends HttpResponseDecorator
implements HttpResponse

Author:
russell

Field Summary
 
Fields inherited from class com.basho.riak.client.http.response.HttpResponseDecorator
impl
 
Constructor Summary
ListBucketsResponse(HttpResponse r)
          Create a list buckets response that parses the resppns ebody json into a set of buckets.
 
Method Summary
 Set<String> getBuckets()
          Get a *copy* of the Set of buckets returned.
 
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
 

Constructor Detail

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
Method Detail

getBuckets

public Set<String> getBuckets()
Get a *copy* of the Set of buckets returned.

Returns:
the buckets


Copyright © 2012. All Rights Reserved.