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

java.lang.Object
  extended by com.basho.riak.client.http.response.HttpResponseDecorator
      extended by com.basho.riak.client.http.response.StoreResponse
All Implemented Interfaces:
HttpResponse, WithBodyResponse

public class StoreResponse
extends HttpResponseDecorator
implements WithBodyResponse

Response from a PUT request for an object. Decorates an HttpResponse to interpret store responses from Riak which returns updated object metadata in HTTP headers.


Field Summary
 
Fields inherited from class com.basho.riak.client.http.response.HttpResponseDecorator
impl
 
Constructor Summary
StoreResponse(FetchResponse fetchResponse)
          On a 2xx response, parses the HTTP headers into updated object metadata.
 
Method Summary
 String getLastmod()
          The object's last modified date or null if Riak didn't return one.
 RiakObject getObject()
           
 Collection<RiakObject> getSiblings()
           
 String getVclock()
          The object's updated vclock or null if Riak didn't return one.
 String getVtag()
          The object's updated etag or null if Riak didn't return one.
 boolean hasObject()
           
 boolean hasSiblings()
           
 
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

StoreResponse

public StoreResponse(FetchResponse fetchResponse)
On a 2xx response, parses the HTTP headers into updated object metadata.

Method Detail

getVclock

public String getVclock()
The object's updated vclock or null if Riak didn't return one.

Specified by:
getVclock in interface WithBodyResponse

getLastmod

public String getLastmod()
The object's last modified date or null if Riak didn't return one.


getVtag

public String getVtag()
The object's updated etag or null if Riak didn't return one.


hasObject

public boolean hasObject()
Specified by:
hasObject in interface WithBodyResponse
Returns:
See Also:
FetchResponse.hasObject()

getObject

public RiakObject getObject()
Specified by:
getObject in interface WithBodyResponse
Returns:
See Also:
FetchResponse.getObject()

hasSiblings

public boolean hasSiblings()
Specified by:
hasSiblings in interface WithBodyResponse
Returns:
See Also:
FetchResponse.hasSiblings()

getSiblings

public Collection<RiakObject> getSiblings()
Specified by:
getSiblings in interface WithBodyResponse
Returns:
See Also:
FetchResponse.getSiblings()


Copyright © 2012. All Rights Reserved.