T
- Represents the implementation type. Allows a consistent builder interface throughout the request
hierarchy. Parameterize concrete subclasses with their own type and implement me()
to return
"this". In abstract subclasses, return me() in builder methods.public abstract class ObjectRequest<T extends ObjectRequest<T>> extends Request
Modifier and Type | Field and Description |
---|---|
protected ObjectIdentifier |
identifier |
Constructor and Description |
---|
ObjectRequest() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
generateHeaders()
Returns the HTTP headers to send in this request, to be generated from other request properties immediately
before sending.
|
ObjectIdentifier |
getIdentifier()
Returns the identifier of the target object for this request
|
T |
identifier(ObjectIdentifier identifier)
Builder method for
setIdentifier(com.emc.atmos.api.ObjectIdentifier) |
protected abstract T |
me()
Returns "this" in concrete implementation classes.
|
void |
setIdentifier(ObjectIdentifier identifier)
Sets the identifier of the target object for this request.
|
getMethod, getQuery, getServiceRelativePath, supports100Continue
protected ObjectIdentifier identifier
protected abstract T me()
new CreateObjectRequest().identifier(path).content(content)
.public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> generateHeaders()
Request
generateHeaders
in class Request
public T identifier(ObjectIdentifier identifier)
setIdentifier(com.emc.atmos.api.ObjectIdentifier)
public ObjectIdentifier getIdentifier()
public void setIdentifier(ObjectIdentifier identifier)