Class LastModified
- All Implemented Interfaces:
- Serializable,- Cloneable,- Header,- NameValuePair
The last modified date for the requested object (in "HTTP-date" format as defined by RFC 7231).
Example
Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT
RFC2616 Specification
The Last-Modified entity-header field indicates the date and time at which the origin server believes the variant was last modified.Last-Modified = "Last-Modified" ":" HTTP-date
An example of its use is...
Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT
The exact meaning of this header field depends on the implementation of the origin server and the nature of the original resource. For files, it may be just the file system last-modified time. For entities with dynamically included parts, it may be the most recent of the set of last-modify times for its component parts. For database gateways, it may be the last-update time stamp of the record. For virtual objects, it may be the last time the internal state changed.
An origin server MUST NOT send a Last-Modified date which is later than the server's time of message origination. In such cases, where the resource's last modification would indicate some time in the future, the server MUST replace that date with the message origination date.
An origin server SHOULD obtain the Last-Modified value of the entity as close as possible to the time that it generates the Date value of its response. This allows a recipient to make an accurate assessment of the entity's modification time, especially if the entity changes near the time that the response is generated.
HTTP/1.1 servers SHOULD send Last-Modified whenever feasible.
See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionLastModified(String value) Constructor.LastModified(ZonedDateTime value) Constructor.LastModified(Supplier<ZonedDateTime> value) Constructor with delayed value.
- 
Method SummaryModifier and TypeMethodDescriptionstatic LastModifiedStatic creator.static LastModifiedof(ZonedDateTime value) Static creator.static LastModifiedof(Supplier<ZonedDateTime> value) Static creator with delayed value.Methods inherited from class org.apache.juneau.http.header.BasicDateHeaderassertZonedDateTime, asZonedDateTime, getValue, of, of, of, orElse, toZonedDateTimeMethods inherited from class org.apache.juneau.http.header.BasicHeaderassertName, assertStringValue, asString, equals, equalsIgnoreCase, get, getElements, getName, hashCode, isNotEmpty, isPresent, of, of, orElse, toString
- 
Constructor Details- 
LastModifiedConstructor.- Parameters:
- value- The header value.
 Must be an RFC-1123 formated string (e.g.- "Sat, 29 Oct 1994 19:43:31 GMT" ).
 Can be- null .
 
- 
LastModifiedConstructor.- Parameters:
- value- The header value.
 Can be- null .
 
- 
LastModifiedConstructor with delayed value.Header value is re-evaluated on each call to BasicDateHeader.getValue().- Parameters:
- value- The supplier of the header value.
 Can be- null .
 
 
- 
- 
Method Details- 
ofStatic creator.- Parameters:
- value- The header value.
 Must be an RFC-1123 formated string (e.g.- "Sat, 29 Oct 1994 19:43:31 GMT" ).
 Can be- null .
- Returns:
- A new header bean, or null if the name isnull or empty or the value isnull .
 
- 
ofStatic creator.- Parameters:
- value- The header value.
 Can be- null .
- Returns:
- A new header bean, or null if the name isnull or empty or the value isnull .
 
- 
ofStatic creator with delayed value.Header value is re-evaluated on each call to BasicDateHeader.getValue().- Parameters:
- value- The supplier of the header value.
 Can be- null .
- Returns:
- A new header bean, or null if the name isnull or empty or the value isnull .
 
 
-