public class BucketResponse extends HttpResponseDecorator implements HttpResponse
impl| Constructor and Description |
|---|
BucketResponse(HttpResponse r)
On a 2xx response, parses the JSON response into a
RiakBucketInfo |
| Modifier and Type | Method and Description |
|---|---|
RiakBucketInfo |
getBucketInfo()
The bucket's schema and keys
|
boolean |
hasBucketInfo()
Whether the bucket's schema and keys were returned in the response from
Riak
|
close, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, getHttpResponse, getKey, getStatusCode, getStream, isError, isStreamed, isSuccessclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, getHttpResponse, getKey, getStatusCode, getStream, isError, isStreamed, isSuccesspublic BucketResponse(HttpResponse r) throws org.json.JSONException, IOException
RiakBucketInfor - The HTTP response from a GET at a bucketorg.json.JSONException - If the response is a 2xx but contains invalid JSONIOException - If a communication error with the Riak server while trying to
read the streamed responsepublic boolean hasBucketInfo()
public RiakBucketInfo getBucketInfo()
Copyright © 2014. All Rights Reserved.