Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 /**
  * 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);
 }
Пример #4
0
 /**
  * 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);
 }