public class ObjectRequest
extends java.lang.Object
Constructor and Description |
---|
ObjectRequest(Method method,
java.lang.String path,
java.lang.String subresource) |
ObjectRequest(ObjectRequest other)
Constructs a duplicate of the specified object request.
|
Modifier and Type | Method and Description |
---|---|
void |
addCustomHeader(java.lang.String key,
java.lang.Object value) |
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
getCustomHeaders() |
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
getHeaders()
Override to return request-specific headers based on properties of the request.
|
Method |
getMethod() |
java.lang.String |
getNamespace() |
java.lang.String |
getPath() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.util.Map<java.lang.String,java.lang.String> |
getQueryParams()
Override to return the request-specific query parameters based on properties of the request.
|
java.lang.String |
getQueryString()
Deprecated.
(2.0.4) use
getRawQueryString() instead |
java.lang.String |
getRawQueryString() |
java.lang.String |
getSubresource() |
void |
property(java.lang.String name,
java.lang.Object value)
Pass request-specific properties to the HTTP client implementation that may affect
processing/filters, etc.
|
void |
setNamespace(java.lang.String namespace) |
protected void |
setPath(java.lang.String path) |
public ObjectRequest(Method method, java.lang.String path, java.lang.String subresource)
method
- the HTTP method to use for the requestpath
- the context-relative path of the request (i.e. the object key/path). Be sure to exclude
dynamic path properties such as bucket or namespace. Since this is context-relative, also exclude
the base context of the service (i.e. /rest for Atmos).subresource
- the subresource of the request. This will be the first parameter in the querystring and will
not have an associated value (i.e. "acl" => ?acl).public ObjectRequest(ObjectRequest other)
public java.util.Map<java.lang.String,java.lang.String> getQueryParams()
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getHeaders()
public void addCustomHeader(java.lang.String key, java.lang.Object value)
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getCustomHeaders()
public final java.lang.String getQueryString()
getRawQueryString()
insteadpublic final java.lang.String getRawQueryString()
public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
public Method getMethod()
public java.lang.String getPath()
protected void setPath(java.lang.String path)
public java.lang.String getSubresource()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public void property(java.lang.String name, java.lang.Object value)