public class DefaultInvalidationService extends Object implements InvalidationService
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_NAME |
protected Cache<String,Long> |
invalidationEntries |
INVALIDATION_HEADER| Constructor and Description |
|---|
DefaultInvalidationService(HttpCache httpCache,
CacheProvider cacheProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
invalidateApplicationResources(Set<Uri> uris,
SecurityToken token)
Invalidate a set of cached resources that are part of the application specification itself.
|
void |
invalidateUserResources(Set<String> opensocialIds,
SecurityToken token)
Invalidate all fetched content that was signed on behalf of the specified set of users.
|
boolean |
isValid(HttpRequest request,
HttpResponse response)
Is the specified HttpResponse still valid.
|
HttpResponse |
markResponse(HttpRequest request,
HttpResponse response)
Mark the HttpResponse prior to caching it so that subsequent calls to isValid can detect
if it has been invalidated.
|
public static final String CACHE_NAME
@Inject public DefaultInvalidationService(HttpCache httpCache, CacheProvider cacheProvider)
public void invalidateApplicationResources(Set<Uri> uris, SecurityToken token)
InvalidationServiceinvalidateApplicationResources in interface InvalidationServiceuris - of content to invalidatetoken - identifying the calling applicationpublic void invalidateUserResources(Set<String> opensocialIds, SecurityToken token)
invalidateUserResources in interface InvalidationServiceopensocialIds - token - public boolean isValid(HttpRequest request, HttpResponse response)
InvalidationServiceisValid in interface InvalidationServicepublic HttpResponse markResponse(HttpRequest request, HttpResponse response)
InvalidationServicemarkResponse in interface InvalidationServiceCopyright © 2007-2012. All Rights Reserved.