org.apache.shindig.gadgets.http
Class NoOpInvalidationService

java.lang.Object
  extended by org.apache.shindig.gadgets.http.NoOpInvalidationService
All Implemented Interfaces:
InvalidationService

public class NoOpInvalidationService
extends Object
implements InvalidationService

No-Op implementation of the invalidation service


Field Summary
 
Fields inherited from interface org.apache.shindig.gadgets.http.InvalidationService
INVALIDATION_HEADER
 
Constructor Summary
NoOpInvalidationService()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpInvalidationService

public NoOpInvalidationService()
Method Detail

invalidateApplicationResources

public void invalidateApplicationResources(Set<Uri> uris,
                                           SecurityToken token)
Description copied from interface: InvalidationService
Invalidate a set of cached resources that are part of the application specification itself. This includes gadget specs, manifests and message bundles

Specified by:
invalidateApplicationResources in interface InvalidationService
Parameters:
uris - of content to invalidate
token - identifying the calling application

invalidateUserResources

public void invalidateUserResources(Set<String> opensocialIds,
                                    SecurityToken token)
Description copied from interface: InvalidationService
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.

Specified by:
invalidateUserResources in interface InvalidationService
Parameters:
opensocialIds - Set of user ids to invalidate authenticated/signed content for
token - identifying the calling application

isValid

public boolean isValid(HttpRequest request,
                       HttpResponse response)
Description copied from interface: InvalidationService
Is the specified HttpResponse still valid. If the request is signed or authenticated has its content been invalidated by a call to invalidateUserResource subsequent to the response being cached.

Specified by:
isValid in interface InvalidationService

markResponse

public HttpResponse markResponse(HttpRequest request,
                                 HttpResponse response)
Description copied from interface: InvalidationService
Mark the HttpResponse prior to caching it so that subsequent calls to isValid can detect if it has been invalidated.

Specified by:
markResponse in interface InvalidationService


Copyright © 2007-2012. All Rights Reserved.