*
* @return an {@link HttpResponse} whose body should be the result of asking
* Riak to list buckets.
*/
public HttpResponse listBuckets(boolean streamResponse) {
final RequestMeta meta = new RequestMeta();
if (streamResponse) {
meta.setQueryParam(Constants.QP_BUCKETS, Constants.STREAM_BUCKETS);
} else {
meta.setQueryParam(Constants.QP_BUCKETS, Constants.LIST_BUCKETS);
}
HttpGet get = new HttpGet(config.getUrl());
return executeMethod(null, null, get, meta, streamResponse);
}