com.basho.riak.client.http.response
Class WalkResponse
java.lang.Object
com.basho.riak.client.http.response.HttpResponseDecorator
com.basho.riak.client.http.response.WalkResponse
- All Implemented Interfaces:
- HttpResponse
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.
Methods inherited from class com.basho.riak.client.http.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.http.response.HttpResponse |
close, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, getHttpResponse, getKey, getStatusCode, getStream, isError, isStreamed, isSuccess |
WalkResponse
public WalkResponse(HttpResponse r,
RiakClient riak)
throws RiakResponseRuntimeException
- 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
- Throws:
RiakResponseRuntimeException
hasSteps
public boolean hasSteps()
- Whether objects were contained in the response
getSteps
public List<? extends List<RiakObject>> getSteps()
- Steps accumulated from link walking. See RiakClient.walk() for more
information.
Copyright © 2012. All Rights Reserved.