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 class
SwiftObject.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SwiftObject.Builder
builder()
int
compareTo(SwiftObject that)
boolean
equals(Object object)
String
getEtag()
Deprecated.Please usegetETag()
instead.String
getETag()
com.google.common.collect.Multimap<String,String>
getHeaders()
Date
getLastModified()
Map<String,String>
getMetadata()
NOTEString
getName()
Payload
getPayload()
NOTEURI
getUri()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
SwiftObject.Builder
toBuilder()
String
toString()
-
-
-
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 inGetObjectMetadata
orGetObject
commands.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(SwiftObject that)
- Specified by:
compareTo
in interfaceComparable<SwiftObject>
-
builder
public static SwiftObject.Builder builder()
-
toBuilder
public SwiftObject.Builder toBuilder()
-
-