Class SwiftObject

    • Method Detail

      • getName

        public String getName()
        Returns:
        The name of this object.
      • getUri

        public URI getUri()
        Returns:
        The URI for this object.
      • getEtag

        @Deprecated
        public String getEtag()
        Deprecated.
        Please use getETag() 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.
      • getLastModified

        public Date getLastModified()
        Returns:
        The Date that this object was last modified.
      • 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 in GetObjectMetadata or GetObject commands.
      • getPayload

        public Payload getPayload()

        NOTE

        The object will only have a Payload.getInput() when retrieved via the GetObject command.
        Returns:
        The Payload for this object.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • string

        protected com.google.common.base.MoreObjects.ToStringHelper string()