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 of
AtmosObject
.-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionAtmosObjectImpl
(MutableContentMetadata contentMetadata) AtmosObjectImpl
(MutableContentMetadata contentMetadata, SystemMetadata systemMetadata, UserMetadata userMetadata) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
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.toString()
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 Details
-
AtmosObjectImpl
public AtmosObjectImpl(MutableContentMetadata contentMetadata, SystemMetadata systemMetadata, UserMetadata userMetadata) -
AtmosObjectImpl
-
-
Method Details
-
getSystemMetadata
- Specified by:
getSystemMetadata
in interfaceAtmosObject
- Returns:
- System and User metadata relevant to this object.
-
getUserMetadata
- Specified by:
getUserMetadata
in interfaceAtmosObject
-
getContentMetadata
- Specified by:
getContentMetadata
in interfaceAtmosObject
-
getAllHeaders
- Specified by:
getAllHeaders
in interfaceAtmosObject
-
setAllHeaders
- Specified by:
setAllHeaders
in interfaceAtmosObject
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AtmosObject>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPayloadEnclosingImpl
-
equals
- Overrides:
equals
in classPayloadEnclosingImpl
-
toString
-
setPayload
Description copied from class:PayloadEnclosingImpl
Sets payload for the request or the content from the response. If size isn't set, this will attempt to discover it.- Specified by:
setPayload
in interfacePayloadEnclosing
- Overrides:
setPayload
in classPayloadEnclosingImpl
- Parameters:
data
- typically InputStream for downloads, or File, byte[], String, InputStream, of ByteSource for uploads.
-