|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basho.riak.client.response.HttpResponseDecorator
com.basho.riak.client.response.BucketResponse
public class BucketResponse
Response from a GET request at a bucket's URL. Decorates an HttpResponse to interpret listBucket response from Riak, which is a JSON object with the keys "props" and "keys".
| Field Summary |
|---|
| Fields inherited from class com.basho.riak.client.response.HttpResponseDecorator |
|---|
impl |
| Constructor Summary | |
|---|---|
BucketResponse(HttpResponse r)
On a 2xx response, parses the JSON response into a RiakBucketInfo |
|
| Method Summary | |
|---|---|
RiakBucketInfo |
getBucketInfo()
The bucket's schema and keys |
boolean |
hasBucketInfo()
Whether the bucket's schema and keys were returned in the response from Riak |
| Methods inherited from class com.basho.riak.client.response.HttpResponseDecorator |
|---|
close, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, 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.response.HttpResponse |
|---|
close, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, getKey, getStatusCode, getStream, isError, isStreamed, isSuccess |
| Constructor Detail |
|---|
public BucketResponse(HttpResponse r)
throws JSONException,
java.io.IOException
RiakBucketInfo
r - The HTTP response from a GET at a bucket
JSONException - If the response is a 2xx but contains invalid JSON
java.io.IOException - If a communication error with the Riak server while trying to
read the streamed response| Method Detail |
|---|
public boolean hasBucketInfo()
public RiakBucketInfo getBucketInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||