WARNING: This class will be REMOVED in the next version.
@Deprecated public class RequestMeta extends Object
RequestMeta
Constructor and Description |
---|
RequestMeta()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
responseRequestMeta
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
operationRequestMeta
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
responseRequestMeta
object with the appropriate query
parameterspublic RequestMeta setHeader(String key, String value)
key
- header namevalue
- header valuepublic String getHeader(String key)
key
- header namepublic boolean hasHeader(String key)
key
- header namepublic 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=v2public 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)
Copyright © 2014. All Rights Reserved.