public class SwiftObjectImpl extends PayloadEnclosingImpl implements SwiftObject, Comparable<SwiftObject>
SwiftObject
.SwiftObject.Factory
payload
Constructor and Description |
---|
SwiftObjectImpl(MutableObjectInfoWithMetadata info) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SwiftObject o) |
boolean |
equals(Object obj) |
com.google.common.collect.Multimap<String,String> |
getAllHeaders() |
MutableObjectInfoWithMetadata |
getInfo() |
int |
hashCode() |
void |
setAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders) |
void |
setPayload(Payload data)
Sets payload for the request or the content from the response.
|
String |
toString() |
getPayload, setPayload, setPayload, setPayload, setPayload
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPayload, setPayload, setPayload, setPayload, setPayload
@Inject public SwiftObjectImpl(MutableObjectInfoWithMetadata info)
public MutableObjectInfoWithMetadata getInfo()
getInfo
in interface SwiftObject
public com.google.common.collect.Multimap<String,String> getAllHeaders()
getAllHeaders
in interface SwiftObject
public void setAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)
setAllHeaders
in interface SwiftObject
public int compareTo(SwiftObject o)
compareTo
in interface Comparable<SwiftObject>
public int hashCode()
hashCode
in class PayloadEnclosingImpl
public boolean equals(Object obj)
equals
in class PayloadEnclosingImpl
public void setPayload(Payload data)
PayloadEnclosingImpl
setPayload
in interface PayloadEnclosing
setPayload
in class PayloadEnclosingImpl
data
- typically InputStream for downloads, or File, byte [], String, or InputStream for
uploads.Copyright © 2009-2012 jclouds. All Rights Reserved.