public class Modified extends java.lang.Object implements HttpHeaders
ACCEPT, ACCEPT_CHARSET, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ACCEPT_RANGES, Access_Control_Allow_Credentials, Access_Control_Allow_Headers, Access_Control_Allow_Methods, Access_Control_Allow_Origin, Access_Control_Expose_Headers, Access_Control_Max_Age, Access_Control_Request_Headers, Access_Control_Request_Method, AGE, ALLOW, AUTHORIZATION, CACHE_CONTROL, CONNECTION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_RANGE, CONTENT_TYPE, COOKIE, DATE, DAV, DEPTH, DESTINATION, ETAG, EXPECT, EXPIRES, FROM, HOST, IF, IF_MATCH, IF_MODIFIED_SINCE, IF_NONE_MATCH, IF_RANGE, IF_UNMODIFIED_SINCE, LAST_MODIFIED, LOCATION, LOCK_TOKEN, MAX_FORWARDS, ORIGIN, OVERWRITE, PRAGMA, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, RANGE, REFERER, RETRY_AFTER, SERVER, SET_COOKIE, STATUS_URI, TE, TIMEOUT, TRAILER, TRANSFER_ENCODING, UPGRADE, USER_AGENT, VARY, VIA, WARNING, WWW_AUTHENTICATE| Constructor and Description |
|---|
Modified(HttpRequest request,
HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
process(long lastModified)
Process
Modified according to given the supplied Last-Modified. |
boolean |
process(java.lang.String eTag)
Process
Modified according to given the supplied ETag. |
boolean |
process(java.lang.String eTag,
long lastModified)
Process
Modified according to given the supplied Last-Modified and ETag. |
public Modified(HttpRequest request, HttpResponse response)
public boolean process(long lastModified)
Modified according to given the supplied Last-Modified.lastModified - the last-modified timestamp in milliseconds of the resource.public boolean process(java.lang.String eTag)
Modified according to given the supplied ETag.eTag - the tag of the resource.public boolean process(java.lang.String eTag,
long lastModified)
Modified according to given the supplied Last-Modified and ETag.eTag - the tag of the resource.lastModified - he last-modified timestamp in milliseconds of the resource.