org.jclouds.atmos.domain.internal
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
.
- Author:
- Adrian Cole
AtmosObjectImpl
public AtmosObjectImpl(MutableContentMetadata contentMetadata,
SystemMetadata systemMetadata,
UserMetadata userMetadata)
AtmosObjectImpl
@Inject
public AtmosObjectImpl(MutableContentMetadata contentMetadata)
getSystemMetadata
public SystemMetadata getSystemMetadata()
- Specified by:
getSystemMetadata
in interface AtmosObject
- Returns:
- System and User metadata relevant to this object.
getUserMetadata
public UserMetadata getUserMetadata()
- Specified by:
getUserMetadata
in interface AtmosObject
getContentMetadata
public MutableContentMetadata getContentMetadata()
-
- Specified by:
getContentMetadata
in interface AtmosObject
getAllHeaders
public com.google.common.collect.Multimap<String,String> getAllHeaders()
-
- Specified by:
getAllHeaders
in interface AtmosObject
setAllHeaders
public void setAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)
-
- Specified by:
setAllHeaders
in interface AtmosObject
compareTo
public int compareTo(AtmosObject o)
-
- Specified by:
compareTo
in interface Comparable<AtmosObject>
hashCode
public int hashCode()
- Overrides:
hashCode
in class PayloadEnclosingImpl
equals
public boolean equals(Object obj)
- Overrides:
equals
in class PayloadEnclosingImpl
toString
public String toString()
- Overrides:
toString
in class Object
setPayload
public void setPayload(Payload data)
- 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 interface PayloadEnclosing
- Overrides:
setPayload
in class PayloadEnclosingImpl
- Parameters:
data
- typically InputStream for downloads, or File, byte [], String, or InputStream for
uploads.
Copyright © 2009-2011 jclouds. All Rights Reserved.