|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.basho.riak.client.request.RequestMeta
WARNING: This class will be REMOVED in the next version.
@Deprecated public class RequestMeta
Extra headers and query parameters to send with a Riak operation.
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 |
---|
public RequestMeta()
Method Detail |
---|
public static RequestMeta readParams(int r)
r
- r- parameter for fetchMeta, fetch, or stream: the number of
successful read response required for a successful overall
response
RequestMeta
object with the appropriate query
parameterspublic static RequestMeta writeParams(Integer w, Integer dw)
w
- w- parameter for store and delete: the number of successful
write responses required for a successful store operationdw
- dw- parameter for store and delete: The number of successful
durable write responses required for a successful store
operation
RequestMeta
object with the appropriate query
parameterspublic static RequestMeta deleteParams(int rw)
rw
- rw- parameter for delete: the number of
successful read/write response required for a successful overall
response
RequestMeta
object with the appropriate query
parameterspublic RequestMeta setHeader(String key, String value)
key
- header namevalue
- header valuepublic String getHeader(String key)
key
- header name
public boolean hasHeader(String key)
key
- header namepublic Map<String,String> getHeaders()
public String getQueryParam(String param)
param
- query parameter namepublic RequestMeta setQueryParam(String param, String value)
param
- query parameter namevalue
- query parameter valuepublic Map<String,String> getQueryParamMap()
LinkedHashMap
of the query params (copy, does not
read/write through)public String getQueryParams()
RequestMeta
in the form: p1=v1&p2=v2
public String getClientId()
public RequestMeta setClientId(String clientId)
public String getIfModifiedSince()
public RequestMeta setIfModifiedSince(String lastmod)
public RequestMeta setIfModifiedSince(Date lastmod)
public String getIfUnmodifiedSince()
public RequestMeta setIfUnmodifiedSince(String lastmod)
public RequestMeta setIfUnmodifiedSince(Date lastmod)
public String getIfMatch()
public RequestMeta setIfMatch(String etags)
public RequestMeta setIfMatch(String[] etags)
public String getIfNoneMatch()
public RequestMeta setIfNoneMatch(String etags)
public RequestMeta setIfNoneMatch(String[] etags)
public String getAccept()
public RequestMeta setAccept(String contentTypes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |