@Header(value="If-Unmodified-Since") public class IfUnmodifiedSince extends BasicDateHeader
Only send the response if the entity has not been modified since a specific time.
If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT
If the requested variant has been modified since the specified time, the server MUST NOT perform the requested operation, and MUST return a 412 (Precondition Failed).
If-Unmodified-Since = "If-Unmodified-Since" ":" HTTP-date
An example of the field is:
If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT
If the request normally (i.e., without the If-Unmodified-Since header) would result in anything other than a 2xx or 412 status, the If-Unmodified-Since header SHOULD be ignored.
If the specified date is invalid, the header is ignored.
The result of a request having both an If-Unmodified-Since header field and either an If-None-Match or an If-Modified-Since header fields is undefined by this specification.
Constructor and Description |
---|
IfUnmodifiedSince(Object value)
Constructor.
|
IfUnmodifiedSince(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static IfUnmodifiedSince |
of(Object value)
Convenience creator.
|
static IfUnmodifiedSince |
of(Supplier<?> value)
Convenience creator using supplier.
|
asCalendar, asDate, assertZonedDateTime, asZonedDateTime, getValue, of, of
assertName, assertValue, canCast, cast, eqIC, equals, getElements, getName, getRawValue, hashCode, isSupplier, of, ofPair, toString, unwrap
public IfUnmodifiedSince(Object value)
value
- The header value.
ZonedDateTime
Calendar
Supplier
of anything on this list.
public IfUnmodifiedSince(String value)
value
- The header value.public static IfUnmodifiedSince of(Object value)
value
- The header value.
ZonedDateTime
Calendar
IfUnmodifiedSince
object, or public static IfUnmodifiedSince of(Supplier<?> value)
Header value is re-evaluated on each call to BasicDateHeader.getValue()
.
value
- The header value supplier.
ZonedDateTime
Calendar
IfUnmodifiedSince
object, or Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.