|
This is an initial implementation of the "Limited Invalidation" spec. Containers are expected to implement their own InvalidationService based on their caching behavior
This implementation differs from the spec in a couple of ways that I believe are worth proposing as clarifications.
- The service endpoint is "cache/invalidate" not "invalidate" for REST. For RPC the method is "cache.invalidate"
- Only 2-legged consumer OAuth calls can invalidate URLs
- Security token for rendering gadgets can only be used to invalidate the viewers data
- Viewer data is invalidated by default and a simple GET /social/rest/cache/invalidate will trigger it
The default request pipeline is altered to allow invalidated content to be returned if fetching a replacement causes an error as is suggested in the spec.
Total comments: 45
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+930 lines, -76 lines) |
Patch |
 |
|
java/common/src/main/java/org/apache/shindig/auth/AnonymousAuthenticationHandler.java
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
|
java/common/src/main/java/org/apache/shindig/auth/AnonymousSecurityToken.java
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/common/src/main/java/org/apache/shindig/auth/AuthenticationHandler.java
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
|
java/common/src/main/java/org/apache/shindig/auth/AuthenticationMode.java
|
View
|
1
|
1 chunk |
+52 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/common/src/main/java/org/apache/shindig/auth/BasicSecurityToken.java
|
View
|
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
|
java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java
|
View
|
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
|
java/common/src/main/java/org/apache/shindig/auth/SecurityToken.java
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/common/src/main/java/org/apache/shindig/auth/UrlParameterAuthenticationHandler.java
|
View
|
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
|
java/common/src/test/java/org/apache/shindig/common/testing/FakeGadgetToken.java
|
View
|
|
4 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultInvalidationService.java
|
View
|
1
|
1 chunk |
+157 lines, -0 lines |
6 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java
|
View
|
1
|
1 chunk |
+31 lines, -14 lines |
2 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/InvalidationHandler.java
|
View
|
1
|
1 chunk |
+104 lines, -0 lines |
2 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/InvalidationService.java
|
View
|
1
|
1 chunk |
+70 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/NoOpInvalidationService.java
|
View
|
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/ProxyHandler.java
|
View
|
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/http/DefaultInvalidationServiceTest.java
|
View
|
1
|
1 chunk |
+224 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/http/DefaultRequestPipelineTest.java
|
View
|
|
5 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/http/InvalidationHandlerTest.java
|
View
|
|
1 chunk |
+139 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/server/src/test/java/org/apache/shindig/server/JettyLauncher.java
|
View
|
|
2 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
|
java/server/src/test/java/org/apache/shindig/server/endtoend/EndToEndModule.java
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
|
java/social-api/src/main/java/org/apache/shindig/social/core/config/SocialApiGuiceModule.java
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
|
java/social-api/src/main/java/org/apache/shindig/social/core/oauth/OAuthAuthenticationHandler.java
|
View
|
|
3 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
|
java/social-api/src/main/java/org/apache/shindig/social/core/oauth/OAuthConsumerRequestAuthenticationHandler.java
|
View
|
|
3 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
 |
|
java/social-api/src/main/java/org/apache/shindig/social/core/oauth/OAuthSecurityToken.java
|
View
|
|
3 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/social-api/src/main/java/org/apache/shindig/social/sample/oauth/SampleOAuthDataStore.java
|
View
|
|
2 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
|
java/social-api/src/test/java/org/apache/shindig/social/SocialApiTestsGuiceModule.java
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 6
|