com.basho.riak.client.response
Class BucketResponse
java.lang.Object
com.basho.riak.client.response.HttpResponseDecorator
com.basho.riak.client.response.BucketResponse
- All Implemented Interfaces:
- HttpResponse
Deprecated. with the addition of a protocol buffers client in 0.14 all the
existing REST client code should be in client.http.* this class
has therefore been moved. Please use
com.basho.riak.client.http.response.BucketResponse
instead.
WARNING: This class will be REMOVED in the next version.
@Deprecated
public class BucketResponse
- extends HttpResponseDecorator
- implements HttpResponse
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".
- See Also:
BucketResponse
Methods inherited from class com.basho.riak.client.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.response.HttpResponse |
close, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, getHttpResponse, getKey, getStatusCode, getStream, isError, isStreamed, isSuccess |
BucketResponse
public BucketResponse(HttpResponse r)
throws JSONException,
IOException
- Deprecated.
- On a 2xx response, parses the JSON response into a
RiakBucketInfo
- Parameters:
r
- The HTTP response from a GET at a bucket
- Throws:
JSONException
- If the response is a 2xx but contains invalid JSON
IOException
- If a communication error with the Riak server while trying to
read the streamed response
hasBucketInfo
public boolean hasBucketInfo()
- Deprecated.
- Whether the bucket's schema and keys were returned in the response from
Riak
getBucketInfo
public RiakBucketInfo getBucketInfo()
- Deprecated.
- The bucket's schema and keys
Copyright © 2012. All Rights Reserved.