Class SwiftObject
- java.lang.Object
-
- org.jclouds.openstack.swift.v1.domain.SwiftObject
-
- All Implemented Interfaces:
Comparable<SwiftObject>
public class SwiftObject extends Object implements Comparable<SwiftObject>
Represents an object in OpenStack Object Storage.- See Also:
ObjectApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSwiftObject.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SwiftObject.Builderbuilder()intcompareTo(SwiftObject that)booleanequals(Object object)StringgetEtag()Deprecated.Please usegetETag()instead.StringgetETag()com.google.common.collect.Multimap<String,String>getHeaders()DategetLastModified()Map<String,String>getMetadata()NOTEStringgetName()PayloadgetPayload()NOTEURIgetUri()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()SwiftObject.BuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- The name of this object.
-
getEtag
@Deprecated public String getEtag()
Deprecated.Please usegetETag()instead. To be removed in jclouds 2.0.- Returns:
- The ETag of the content of this object.
-
getETag
public String getETag()
- Returns:
- The ETag of the content of this object.
-
getHeaders
public com.google.common.collect.Multimap<String,String> getHeaders()
- Returns:
- The HTTP headers for this object.
-
getMetadata
public Map<String,String> getMetadata()
NOTE
In current swift implementations, headers keys are lower-cased. This means characters such as turkish will probably not work out well.- Returns:
- a
Map<String, String>containing this object's metadata. The map is empty except inGetObjectMetadataorGetObjectcommands.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(SwiftObject that)
- Specified by:
compareToin interfaceComparable<SwiftObject>
-
builder
public static SwiftObject.Builder builder()
-
toBuilder
public SwiftObject.Builder toBuilder()
-
-