Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public class ObjectInfo

  1. Object
  2. ObjectInfo

Known subtypesS3.ObjectInfo

What ObjectStorage.headObject reports about one object.

Constructors

public ObjectInfo(String key, long size, String contentType, String etag, String lastModified)An object’s metadata.

Methods

public String getKey()
public long getSize()The length in bytes, or -1 when the provider did not report it.
public String getContentType()
public String getEtag()The provider’s entity tag, unquoted.
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.

Inherited methods

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.