/** * Returns the time this object will expire and be completely removed from * S3. Returns null if this object will never expire. */ public Date getExpirationTime() { return cloneDate(expirationTime); }
/** * Returns the time at which an object that has been temporarily restored * from Amazon Glacier will expire, and will need to be restored again in * order to be accessed. Returns null if this is not a temporary copy of an * object restored from Glacier. */ public Date getRestoreExpirationTime() { return cloneDate(restoreExpirationTime); }
/** * Returns the date when the object is no longer cacheable. */ public Date getHttpExpiresDate() { return cloneDate(httpExpiresDate); }
/** * Gets the value of the Last-Modified header, indicating the date * and time at which Amazon S3 last recorded a modification to the * associated object. * * @return The date and time at which Amazon S3 last recorded a modification * to the associated object. */ public Date getLastModified() { return cloneDate((Date)metadata.get(Headers.LAST_MODIFIED)); }
private ObjectMetadata(ObjectMetadata from) { this.userMetadata = from.userMetadata == null ? null : new TreeMap<String,String>(from.userMetadata); // shallow clone the meata data this.metadata = from.metadata == null ? null : new TreeMap<String, Object>(from.metadata); this.expirationTime = cloneDate(from.expirationTime); this.expirationTimeRuleId = from.expirationTimeRuleId; this.httpExpiresDate = cloneDate(from.httpExpiresDate); this.ongoingRestore = from.ongoingRestore; this.restoreExpirationTime = cloneDate(from.restoreExpirationTime); }
/** * Returns the date when the object is no longer cacheable. */ public Date getHttpExpiresDate() { return cloneDate(httpExpiresDate); }
/** * Returns the time this object will expire and be completely removed from * S3. Returns null if this object will never expire. */ @Override public Date getExpirationTime() { return cloneDate(expirationTime); }
/** * Returns the time at which an object that has been temporarily restored * from Amazon Glacier will expire, and will need to be restored again in * order to be accessed. Returns null if this is not a temporary copy of an * object restored from Glacier. */ @Override public Date getRestoreExpirationTime() { return cloneDate(restoreExpirationTime); }
private ObjectMetadata(ObjectMetadata from) { this.userMetadata = from.userMetadata == null ? null : new TreeMap<String,String>(from.userMetadata); // shallow clone the metadata data this.metadata = from.metadata == null ? null : new TreeMap<String, Object>(from.metadata); this.expirationTime = cloneDate(from.expirationTime); this.expirationTimeRuleId = from.expirationTimeRuleId; this.httpExpiresDate = cloneDate(from.httpExpiresDate); this.ongoingRestore = from.ongoingRestore; this.restoreExpirationTime = cloneDate(from.restoreExpirationTime); }
/** * Gets the value of the Last-Modified header, indicating the date and time * at which Amazon S3 last recorded a modification to the associated object. * * @return The date and time at which Amazon S3 last recorded a modification * to the associated object. Returns <code>null</code> if the * Last-Modified header hasn't been set. */ public Date getLastModified() { return cloneDate((Date) metadata.get(Headers.LAST_MODIFIED)); }
/** * Returns the time this object will expire and be completely removed from * S3. Returns null if this object will never expire. */ @Override public Date getExpirationTime() { return cloneDate(expirationTime); }
/** * Returns the time at which an object that has been temporarily restored * from Amazon Glacier will expire, and will need to be restored again in * order to be accessed. Returns null if this is not a temporary copy of an * object restored from Glacier. */ public Date getRestoreExpirationTime() { return cloneDate(restoreExpirationTime); }
/** * Returns the time at which an object that has been temporarily restored * from Amazon Glacier will expire, and will need to be restored again in * order to be accessed. Returns null if this is not a temporary copy of an * object restored from Glacier. */ @Override public Date getRestoreExpirationTime() { return cloneDate(restoreExpirationTime); }
/** * Returns the time this object will expire and be completely removed from * S3. Returns null if this object will never expire. */ public Date getExpirationTime() { return cloneDate(expirationTime); }
/** * Returns the date when the object is no longer cacheable. */ public Date getHttpExpiresDate() { return cloneDate(httpExpiresDate); }
/** * Returns the date when the object is no longer cacheable. */ public Date getHttpExpiresDate() { return cloneDate(httpExpiresDate); }
/** * Gets the value of the Last-Modified header, indicating the date * and time at which Amazon S3 last recorded a modification to the * associated object. * * @return The date and time at which Amazon S3 last recorded a modification * to the associated object. */ public Date getLastModified() { return cloneDate((Date)metadata.get(Headers.LAST_MODIFIED)); }
private ObjectMetadata(ObjectMetadata from) { this.userMetadata = from.userMetadata == null ? null : new TreeMap<String,String>(from.userMetadata); // shallow clone the meata data this.metadata = from.metadata == null ? null : new TreeMap<String, Object>(from.metadata); this.expirationTime = cloneDate(from.expirationTime); this.expirationTimeRuleId = from.expirationTimeRuleId; this.httpExpiresDate = cloneDate(from.httpExpiresDate); this.ongoingRestore = from.ongoingRestore; this.restoreExpirationTime = cloneDate(from.restoreExpirationTime); }
/** * Gets the value of the Last-Modified header, indicating the date and time * at which Amazon S3 last recorded a modification to the associated object. * * @return The date and time at which Amazon S3 last recorded a modification * to the associated object. Returns <code>null</code> if the * Last-Modified header hasn't been set. */ public Date getLastModified() { return cloneDate((Date) metadata.get(Headers.LAST_MODIFIED)); }
private ObjectMetadata(ObjectMetadata from) { this.userMetadata = from.userMetadata == null ? null : new TreeMap<String,String>(from.userMetadata); // shallow clone the metadata data this.metadata = from.metadata == null ? null : new TreeMap<String, Object>(from.metadata); this.expirationTime = cloneDate(from.expirationTime); this.expirationTimeRuleId = from.expirationTimeRuleId; this.httpExpiresDate = cloneDate(from.httpExpiresDate); this.ongoingRestore = from.ongoingRestore; this.restoreExpirationTime = cloneDate(from.restoreExpirationTime); }