com.basho.riak.client.request
Class RequestMeta

java.lang.Object
  extended by com.basho.riak.client.request.RequestMeta

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.request.RequestMeta instead.

WARNING: This class will be REMOVED in the next version.

@Deprecated
public class RequestMeta
extends Object

Extra headers and query parameters to send with a Riak operation.

See Also:
RequestMeta

Constructor Summary
RequestMeta()
          Deprecated.  
 
Method Summary
static RequestMeta deleteParams(int rw)
          Deprecated. Use the given rw parameter for delete operations
 String getAccept()
          Deprecated. Convenience method for the Accept HTTP header
 String getClientId()
          Deprecated. Convenience method for the X-Riak-ClientId HTTP header
 String getHeader(String key)
          Deprecated. Return the value for the HTTP header or null if not set
 Map<String,String> getHeaders()
          Deprecated. Map of HTTP header names to values
 String getIfMatch()
          Deprecated. Convenience method for the If-Match HTTP header
 String getIfModifiedSince()
          Deprecated. Convenience method for the If-Modified-Since HTTP header
 String getIfNoneMatch()
          Deprecated. Convenience method for the If-None-Match HTTP header
 String getIfUnmodifiedSince()
          Deprecated. Convenience method for the If-Unmodified-Since HTTP header
 String getQueryParam(String param)
          Deprecated. Query parameter value or null if not set
 Map<String,String> getQueryParamMap()
          Deprecated. Get a copy of the query params in a map
 String getQueryParams()
          Deprecated. A string containing all the specified query parameters in this RequestMeta in the form: p1=v1&p2=v2
 boolean hasHeader(String key)
          Deprecated. Whether the HTTP header has been set
static RequestMeta readParams(int r)
          Deprecated. Use the given r parameter for fetchMeta, fetch, or stream operations
 RequestMeta setAccept(String contentTypes)
          Deprecated.  
 RequestMeta setClientId(String clientId)
          Deprecated.  
 RequestMeta setHeader(String key, String value)
          Deprecated. Add the specified HTTP header
 RequestMeta setIfMatch(String etags)
          Deprecated.  
 RequestMeta setIfMatch(String[] etags)
          Deprecated.  
 RequestMeta setIfModifiedSince(Date lastmod)
          Deprecated.  
 RequestMeta setIfModifiedSince(String lastmod)
          Deprecated.  
 RequestMeta setIfNoneMatch(String etags)
          Deprecated.  
 RequestMeta setIfNoneMatch(String[] etags)
          Deprecated.  
 RequestMeta setIfUnmodifiedSince(Date lastmod)
          Deprecated.  
 RequestMeta setIfUnmodifiedSince(String lastmod)
          Deprecated.  
 RequestMeta setQueryParam(String param, String value)
          Deprecated. Add the given query parameter to the request
static RequestMeta writeParams(Integer w, Integer dw)
          Deprecated. Use the given w and dw params for store or delete operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestMeta

public RequestMeta()
Deprecated. 
Method Detail

readParams

public static RequestMeta readParams(int r)
Deprecated. 
Use the given r parameter for fetchMeta, fetch, or stream operations

Parameters:
r - r- parameter for fetchMeta, fetch, or stream: the number of successful read response required for a successful overall response
Returns:
A RequestMeta object with the appropriate query parameters

writeParams

public static RequestMeta writeParams(Integer w,
                                      Integer dw)
Deprecated. 
Use the given w and dw params for store or delete operations.

Parameters:
w - w- parameter for store and delete: the number of successful write responses required for a successful store operation
dw - dw- parameter for store and delete: The number of successful durable write responses required for a successful store operation
Returns:
A RequestMeta object with the appropriate query parameters

deleteParams

public static RequestMeta deleteParams(int rw)
Deprecated. 
Use the given rw parameter for delete operations

Parameters:
rw - rw- parameter for delete: the number of successful read/write response required for a successful overall response
Returns:
A RequestMeta object with the appropriate query parameters

setHeader

public RequestMeta setHeader(String key,
                             String value)
Deprecated. 
Add the specified HTTP header

Parameters:
key - header name
value - header value

getHeader

public String getHeader(String key)
Deprecated. 
Return the value for the HTTP header or null if not set

Parameters:
key - header name
Returns:
value of header or null if not set

hasHeader

public boolean hasHeader(String key)
Deprecated. 
Whether the HTTP header has been set

Parameters:
key - header name

getHeaders

public Map<String,String> getHeaders()
Deprecated. 
Map of HTTP header names to values


getQueryParam

public String getQueryParam(String param)
Deprecated. 
Query parameter value or null if not set

Parameters:
param - query parameter name

setQueryParam

public RequestMeta setQueryParam(String param,
                                 String value)
Deprecated. 
Add the given query parameter to the request

Parameters:
param - query parameter name
value - query parameter value

getQueryParamMap

public Map<String,String> getQueryParamMap()
Deprecated. 
Get a copy of the query params in a map

Returns:
a LinkedHashMap of the query params (copy, does not read/write through)

getQueryParams

public String getQueryParams()
Deprecated. 
A string containing all the specified query parameters in this RequestMeta in the form: p1=v1&p2=v2


getClientId

public String getClientId()
Deprecated. 
Convenience method for the X-Riak-ClientId HTTP header


setClientId

public RequestMeta setClientId(String clientId)
Deprecated. 

getIfModifiedSince

public String getIfModifiedSince()
Deprecated. 
Convenience method for the If-Modified-Since HTTP header


setIfModifiedSince

public RequestMeta setIfModifiedSince(String lastmod)
Deprecated. 

setIfModifiedSince

public RequestMeta setIfModifiedSince(Date lastmod)
Deprecated. 

getIfUnmodifiedSince

public String getIfUnmodifiedSince()
Deprecated. 
Convenience method for the If-Unmodified-Since HTTP header


setIfUnmodifiedSince

public RequestMeta setIfUnmodifiedSince(String lastmod)
Deprecated. 

setIfUnmodifiedSince

public RequestMeta setIfUnmodifiedSince(Date lastmod)
Deprecated. 

getIfMatch

public String getIfMatch()
Deprecated. 
Convenience method for the If-Match HTTP header


setIfMatch

public RequestMeta setIfMatch(String etags)
Deprecated. 

setIfMatch

public RequestMeta setIfMatch(String[] etags)
Deprecated. 

getIfNoneMatch

public String getIfNoneMatch()
Deprecated. 
Convenience method for the If-None-Match HTTP header


setIfNoneMatch

public RequestMeta setIfNoneMatch(String etags)
Deprecated. 

setIfNoneMatch

public RequestMeta setIfNoneMatch(String[] etags)
Deprecated. 

getAccept

public String getAccept()
Deprecated. 
Convenience method for the Accept HTTP header


setAccept

public RequestMeta setAccept(String contentTypes)
Deprecated. 


Copyright © 2012. All Rights Reserved.