public interface InvalidationService
| Modifier and Type | Field and Description |
|---|---|
static String |
INVALIDATION_HEADER
Header used to tag the content with its invalidation marker.
|
| 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.
|
static final String INVALIDATION_HEADER
void invalidateApplicationResources(Set<Uri> uris, SecurityToken token)
uris - of content to invalidatetoken - identifying the calling applicationvoid invalidateUserResources(Set<String> opensocialIds, SecurityToken token)
opensocialIds - Set of user ids to invalidate authenticated/signed content fortoken - identifying the calling applicationboolean isValid(HttpRequest request, HttpResponse response)
HttpResponse markResponse(HttpRequest request, HttpResponse response)
Copyright © 2007-2012. All Rights Reserved.