com.basho.riak.client.http.response
Class WalkResponse

java.lang.Object
  extended by com.basho.riak.client.http.response.HttpResponseDecorator
      extended by 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.


Field Summary
 
Fields inherited from class com.basho.riak.client.http.response.HttpResponseDecorator
impl
 
Constructor Summary
WalkResponse(HttpResponse r)
           
WalkResponse(HttpResponse r, RiakClient riak)
          On a 2xx response, parses the HTTP body into a list of steps.
 
Method Summary
 List<? extends List<RiakObject>> getSteps()
          Steps accumulated from link walking.
 boolean hasSteps()
          Whether objects were contained in the response
 
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
 

Constructor Detail

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
Method Detail

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.