Class SwiftObject
java.lang.Object
org.jclouds.openstack.swift.v1.domain.SwiftObject
- All Implemented Interfaces:
Comparable<SwiftObject>
Represents an object in OpenStack Object Storage.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SwiftObject
-
-
Method Details
-
getName
- Returns:
- The name of this object.
-
getUri
- Returns:
- The
URI
for this object.
-
getEtag
Deprecated.Please usegetETag()
instead. To be removed in jclouds 2.0.- Returns:
- The ETag of the content of this object.
-
getETag
- Returns:
- The ETag of the content of this object.
-
getLastModified
- Returns:
- The
Date
that this object was last modified.
-
getHeaders
- Returns:
- The HTTP headers for this object.
-
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 ininvalid reference
GetObjectMetadata
invalid reference
GetObject
-
getPayload
NOTE
The object will only have aPayload.getInput()
when retrieved via theinvalid reference
GetObject
- Returns:
- The
Payload
for this object.
-
equals
-
hashCode
public int hashCode() -
toString
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
compareTo
- Specified by:
compareTo
in interfaceComparable<SwiftObject>
-
builder
-
toBuilder
-
getETag()
instead.