com.basho.riak.client.response
Class StoreResponse

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

public class StoreResponse
extends HttpResponseDecorator
implements HttpResponse

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.response.HttpResponseDecorator
impl
 
Constructor Summary
StoreResponse(HttpResponse r)
          On a 2xx response, parses the HTTP headers into updated object metadata.
 
Method Summary
 java.lang.String getLastmod()
          The object's last modified date or null if Riak didn't return one.
 java.lang.String getVclock()
          The object's updated vclock or null if Riak didn't return one.
 java.lang.String getVtag()
          The object's updated etag or null if Riak didn't return one.
 
Methods inherited from class com.basho.riak.client.response.HttpResponseDecorator
close, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, 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, getKey, getStatusCode, getStream, isError, isStreamed, isSuccess
 

Constructor Detail

StoreResponse

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

Method Detail

getVclock

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


getLastmod

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


getVtag

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



Copyright © 2010. All Rights Reserved.