public abstract class AbstractIfSince extends DateHeader
| Constructor and Description |
|---|
AbstractIfSince(java.util.Date sinceDate) |
AbstractIfSince(java.lang.Long milliseconds) |
AbstractIfSince(java.lang.String sinceDate) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHeaderValue()
Returns the value that must be set in the request.
|
java.util.Date |
getSinceDate() |
abstract 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.
|
convertDateToString, convertStringToDate, getDateconvertResponseHeader, getHeaderName, getResponseHeadersStartingWith, headerNotEmpty, setHeaderpublic AbstractIfSince(java.lang.Long milliseconds)
public AbstractIfSince(java.lang.String sinceDate)
throws org.apache.http.impl.cookie.DateParseException
org.apache.http.impl.cookie.DateParseExceptionpublic AbstractIfSince(java.util.Date sinceDate)
public java.util.Date getSinceDate()
public abstract void sinceAgainst(java.util.Date modificationDate)
modificationDate - the value to match againstpublic java.lang.String getHeaderValue()
HeadergetHeaderValue in class HeaderCopyright © 2012-2020 42 BV. All Rights Reserved.