public interface HttpCacheToolkit
Modifier and Type | Method and Description |
---|---|
void |
addEtag(Context context,
Result result,
java.lang.Long lastModified)
Adds etag to result.
|
boolean |
isModified(com.google.common.base.Optional<java.lang.String> etag,
com.google.common.base.Optional<java.lang.Long> lastModified,
Context context)
Checks if resource has been modified.
|
boolean isModified(com.google.common.base.Optional<java.lang.String> etag, com.google.common.base.Optional<java.lang.Long> lastModified, Context context)
etag
- - may be absentlastModified
- - may be absentcontext
- the Context of this requestCopyright © 2014. All Rights Reserved.