WARNING: This class will be REMOVED in the next version.
@Deprecated public class BucketResponse extends HttpResponseDecorator implements HttpResponse
BucketResponse
impl
Constructor and Description |
---|
BucketResponse(HttpResponse r)
Deprecated.
On a 2xx response, parses the JSON response into a
RiakBucketInfo |
Modifier and Type | Method and Description |
---|---|
RiakBucketInfo |
getBucketInfo()
Deprecated.
The bucket's schema and keys
|
boolean |
hasBucketInfo()
Deprecated.
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, isSuccess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, getHttpResponse, getKey, getStatusCode, getStream, isError, isStreamed, isSuccess
public BucketResponse(HttpResponse r) throws org.json.JSONException, IOException
RiakBucketInfo
r
- 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 © 2013. All Rights Reserved.