public class HttpCacheToolkitImpl extends Object implements HttpCacheToolkit
| Constructor and Description |
|---|
HttpCacheToolkitImpl(NinjaProperties ninjaProperties) |
@Inject public HttpCacheToolkitImpl(NinjaProperties ninjaProperties)
public boolean isModified(String etag, Long lastModified, Context context)
HttpCacheToolkitisModified in interface HttpCacheToolkitetag - (can be null)lastModified - (can be null)context - the Context of this requestpublic void addEtag(Context context, Result result, Long lastModified)
HttpCacheToolkitaddEtag in interface HttpCacheToolkitcontext - The contextresult - The result to populate with etaglastModified - Last modified => In that case used to generate etag.Copyright © 2013. All Rights Reserved.