public class IfModifiedSince extends AbstractIfSince
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IF_MODIFIED_SINCE |
| Constructor and Description |
|---|
IfModifiedSince(java.util.Date date) |
IfModifiedSince(java.lang.Long milliseconds) |
IfModifiedSince(java.lang.String sinceDate) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHeaderName()
Returns the header name that must be set in the request.
|
void |
sinceAgainst(java.util.Date modificationDate)
Makes a check against the sinceDate and throws an exception (with the proper HTTP status code) if the value
means no content should be returned.
|
getHeaderValue, getSinceDateconvertDateToString, convertStringToDate, getDateconvertResponseHeader, getResponseHeadersStartingWith, headerNotEmpty, setHeaderpublic static final java.lang.String IF_MODIFIED_SINCE
public IfModifiedSince(java.lang.Long milliseconds)
public IfModifiedSince(java.lang.String sinceDate)
throws org.apache.http.impl.cookie.DateParseException
org.apache.http.impl.cookie.DateParseExceptionpublic IfModifiedSince(java.util.Date date)
public void sinceAgainst(java.util.Date modificationDate)
AbstractIfSincesinceAgainst in class AbstractIfSincemodificationDate - the value to match againstpublic java.lang.String getHeaderName()
HeadergetHeaderName in class HeaderCopyright © 2012-2020 42 BV. All Rights Reserved.