public class NoOpInvalidationService extends Object implements InvalidationService
INVALIDATION_HEADER| Constructor and Description |
|---|
NoOpInvalidationService() |
| 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 cached resources where the specified user ids were used as either the
owner or viewer id when a signed or OAuth request was made for the content by the application
identified in the security token.
|
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 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)
InvalidationServiceinvalidateUserResources in interface InvalidationServiceopensocialIds - Set of user ids to invalidate authenticated/signed content fortoken - identifying the calling applicationpublic 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.