Class AtmosObjectImpl
- java.lang.Object
-
- org.jclouds.http.internal.PayloadEnclosingImpl
-
- org.jclouds.atmos.domain.internal.AtmosObjectImpl
-
- All Implemented Interfaces:
Comparable<AtmosObject>,AtmosObject,PayloadEnclosing
public class AtmosObjectImpl extends PayloadEnclosingImpl implements AtmosObject, Comparable<AtmosObject>
Default Implementation ofAtmosObject.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAtmosObjectImpl.AtmosObjectFactory-
Nested classes/interfaces inherited from interface org.jclouds.atmos.domain.AtmosObject
AtmosObject.Factory
-
-
Field Summary
-
Fields inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
payload
-
-
Constructor Summary
Constructors Constructor Description AtmosObjectImpl(MutableContentMetadata contentMetadata)AtmosObjectImpl(MutableContentMetadata contentMetadata, SystemMetadata systemMetadata, UserMetadata userMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AtmosObject o)booleanequals(Object obj)com.google.common.collect.Multimap<String,String>getAllHeaders()MutableContentMetadatagetContentMetadata()SystemMetadatagetSystemMetadata()UserMetadatagetUserMetadata()inthashCode()voidsetAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)voidsetPayload(Payload data)Sets payload for the request or the content from the response.StringtoString()-
Methods inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
getPayload, resetPayload, setPayload, setPayload, setPayload, setPayload, setPayload
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jclouds.io.PayloadEnclosing
getPayload, resetPayload, setPayload, setPayload, setPayload, setPayload, setPayload
-
-
-
-
Constructor Detail
-
AtmosObjectImpl
public AtmosObjectImpl(MutableContentMetadata contentMetadata, SystemMetadata systemMetadata, UserMetadata userMetadata)
-
AtmosObjectImpl
@Inject public AtmosObjectImpl(MutableContentMetadata contentMetadata)
-
-
Method Detail
-
getSystemMetadata
public SystemMetadata getSystemMetadata()
- Specified by:
getSystemMetadatain interfaceAtmosObject- Returns:
- System and User metadata relevant to this object.
-
getUserMetadata
public UserMetadata getUserMetadata()
- Specified by:
getUserMetadatain interfaceAtmosObject
-
getContentMetadata
public MutableContentMetadata getContentMetadata()
- Specified by:
getContentMetadatain interfaceAtmosObject
-
getAllHeaders
public com.google.common.collect.Multimap<String,String> getAllHeaders()
- Specified by:
getAllHeadersin interfaceAtmosObject
-
setAllHeaders
public void setAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)
- Specified by:
setAllHeadersin interfaceAtmosObject
-
compareTo
public int compareTo(AtmosObject o)
- Specified by:
compareToin interfaceComparable<AtmosObject>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPayloadEnclosingImpl
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classPayloadEnclosingImpl
-
setPayload
public void setPayload(Payload data)
Description copied from class:PayloadEnclosingImplSets payload for the request or the content from the response. If size isn't set, this will attempt to discover it.- Specified by:
setPayloadin interfacePayloadEnclosing- Overrides:
setPayloadin classPayloadEnclosingImpl- Parameters:
data- typically InputStream for downloads, or File, byte[], String, InputStream, of ByteSource for uploads.
-
-