Class ObjectInfo

java.lang.Object
com.codename1.backend.storage.ObjectInfo
Direct Known Subclasses:
S3.ObjectInfo

public class ObjectInfo extends Object
What ObjectStorage.headObject(String, String) reports about one object.
  • Constructor Details

    • ObjectInfo

      public ObjectInfo(String key, long size, String contentType, String etag, String lastModified)
      An object's metadata. size is -1 when the provider did not say; etag is given without its surrounding quotes.
  • Method Details

    • getKey

      public String getKey()
    • getSize

      public long getSize()
      The length in bytes, or -1 when the provider did not report it.
    • getContentType

      public String getContentType()
    • getEtag

      public String getEtag()
      The provider's entity tag, unquoted. Its format is the provider's own: an MD5 for a simple S3 upload, an opaque value for Azure and GCS.
    • getLastModified

      public String getLastModified()
      The modification time exactly as the provider sent it: an HTTP date for S3 and Azure, an RFC 3339 timestamp for GCS. Not parsed, so nothing is lost in a conversion the caller may not want.