com.basho.riak.client.response
Class WalkResponse
java.lang.Object
com.basho.riak.client.response.HttpResponseDecorator
com.basho.riak.client.response.WalkResponse
- 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.WalkResponse
instead.
WARNING: This class will be REMOVED in the next version.
@Deprecated
public class WalkResponse
- extends HttpResponseDecorator
- implements HttpResponse
Response from a GET request for an object with link walking. Decorates an
HttpResponse to interpret walk responses from Riak which returns
multipart/mixed documents.
- See Also:
WalkResponse
Method Summary |
List<? extends List<RiakObject>> |
getSteps()
Deprecated. Steps accumulated from link walking. |
boolean |
hasSteps()
Deprecated. Whether objects were contained in the response |
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 |
WalkResponse
public WalkResponse(HttpResponse r,
RiakClient riak)
throws RiakResponseRuntimeException
- Deprecated.
- On a 2xx response, parses the HTTP body into a list of steps. Each step
contains a list of objects returned in that step. The HTTP body is a
multipart/mixed message with multipart/mixed subparts
- Throws:
RiakResponseRuntimeException
WalkResponse
public WalkResponse(HttpResponse r)
throws RiakResponseRuntimeException
- Deprecated.
- Throws:
RiakResponseRuntimeException
hasSteps
public boolean hasSteps()
- Deprecated.
- Whether objects were contained in the response
getSteps
public List<? extends List<RiakObject>> getSteps()
- Deprecated.
- Steps accumulated from link walking. See RiakClient.walk() for more
information.
Copyright © 2012. All Rights Reserved.