|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InvalidationService
Service implemented by the container to support content invalidation.
| Field Summary | |
|---|---|
static String |
INVALIDATION_HEADER
Header used to tag the content with its invalidation marker. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final String INVALIDATION_HEADER
| Method Detail |
|---|
void invalidateApplicationResources(Set<Uri> uris,
SecurityToken token)
uris - of content to invalidatetoken - identifying the calling application
void invalidateUserResources(Set<String> opensocialIds,
SecurityToken token)
opensocialIds - Set of user ids to invalidate authenticated/signed content fortoken - identifying the calling application
boolean isValid(HttpRequest request,
HttpResponse response)
HttpResponse markResponse(HttpRequest request,
HttpResponse response)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||