/** * Set the time the resource was last changed, as specified by the {@code Last-Modified} header. * * <p>The date should be specified as the number of milliseconds since January 1, 1970 GMT. */ public void setLastModified(long lastModified) { setDate(LAST_MODIFIED, lastModified); }
/** * Set the date and time at which the message is no longer valid, as specified by the {@code * Expires} header. * * <p>The date should be specified as the number of milliseconds since January 1, 1970 GMT. */ public void setExpires(long expires) { setDate(EXPIRES, expires); }
/** * Set the (new) value of the {@code If-Modified-Since} header. * * <p>The date should be specified as the number of milliseconds since January 1, 1970 GMT. */ public void setIfModifiedSince(long ifModifiedSince) { setDate(IF_MODIFIED_SINCE, ifModifiedSince); }
/** * Set the date and time at which the message was created, as specified by the {@code Date} * header. * * <p>The date should be specified as the number of milliseconds since January 1, 1970 GMT. */ public void setDate(long date) { setDate(DATE, date); }