|
This is an implementation of the makeRequest endpoint in JSON-RPC form.
See documentation in HttpRequestHandler for request format.
The intent of this patch is not to switch gadgets.io.makeRequest to use this format but rather to make it available within oslite as oslite.http.* A later CL will be created to allow using this for gadgets.io.makeRequest
The following JSON-RPC operations are now available @ /gadgets/rpc :
http.get, http.post, http.put, http.delete, http.head, cache.invalidate, system.listMethods
Includes a refactoring to allow binding different handlers into ApiServlets based on servlet config
Total comments: 18
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1358 lines, -154 lines) |
Patch |
 |
|
java/common/src/main/java/org/apache/shindig/protocol/ApiServlet.java
|
View
|
1
2
|
2 chunks |
+23 lines, -1 line |
0 comments
|
Download
|
 |
|
java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java
|
View
|
1
2
|
4 chunks |
+37 lines, -41 lines |
0 comments
|
Download
|
 |
|
java/common/src/main/java/org/apache/shindig/protocol/HandlerRegistry.java
|
View
|
1
2
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/common/src/main/java/org/apache/shindig/protocol/SystemHandler.java
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
|
java/common/src/main/java/org/apache/shindig/protocol/conversion/BeanJsonConverter.java
|
View
|
1
2
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/common/src/test/java/org/apache/shindig/protocol/DataServiceServletTest.java
|
View
|
1
2
|
3 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
|
java/common/src/test/java/org/apache/shindig/protocol/DefaultHandlerRegistryTest.java
|
View
|
1
2
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
|
java/common/src/test/java/org/apache/shindig/protocol/JsonRpcServletTest.java
|
View
|
1
2
|
3 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/DefaultGuiceModule.java
|
View
|
1
2
|
2 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java
|
View
|
2
|
3 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/RequestPipeline.java
|
View
|
2
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth/OAuthArguments.java
|
View
|
1
2
|
1 chunk |
+22 lines, -10 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/HttpRequestHandler.java
|
View
|
1
2
|
1 chunk |
+486 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/MakeRequestHandler.java
|
View
|
2
|
2 chunks |
+4 lines, -18 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/ProxyBase.java
|
View
|
1
2
|
3 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/ProxyHandler.java
|
View
|
1
2
|
3 chunks |
+3 lines, -19 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/DefaultGadgetSpecFactoryTest.java
|
View
|
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/DefaultMessageBundleFactoryTest.java
|
View
|
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/http/InvalidationHandlerTest.java
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/preload/HttpPreloaderTest.java
|
View
|
2
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/preload/PipelinedDataPreloaderTest.java
|
View
|
2
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/render/HtmlRendererTest.java
|
View
|
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/BaseRewriterTestCase.java
|
View
|
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/image/JPEGOptimizerTest.java
|
View
|
2
|
4 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/servlet/HttpRequestHandlerTest.java
|
View
|
|
1 chunk |
+508 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/server/src/main/webapp/WEB-INF/web.xml
|
View
|
1
2
|
4 chunks |
+36 lines, -6 lines |
0 comments
|
Download
|
 |
|
java/server/src/main/webapp/WEB-INF/web.full.xml
|
View
|
1
2
|
4 chunks |
+36 lines, -6 lines |
0 comments
|
Download
|
 |
|
java/server/src/main/webapp/WEB-INF/web.gadgets.xml
|
View
|
1
2
|
3 chunks |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/server/src/main/webapp/WEB-INF/web.social.xml
|
View
|
1
2
|
1 chunk |
+14 lines, -6 lines |
0 comments
|
Download
|
 |
|
java/server/src/test/java/org/apache/shindig/server/JettyLauncher.java
|
View
|
1
2
|
3 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/server/src/test/java/org/apache/shindig/server/endtoend/EndToEndModule.java
|
View
|
1
2
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
|
java/server/src/test/java/org/apache/shindig/server/endtoend/EndToEndServer.java
|
View
|
1
2
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
|
java/social-api/src/main/java/org/apache/shindig/social/core/config/SocialApiGuiceModule.java
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
|
java/social-api/src/test/java/org/apache/shindig/social/SocialApiTestsGuiceModule.java
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
|
java/social-api/src/test/java/org/apache/shindig/social/dataservice/integration/AbstractLargeRestfulTests.java
|
View
|
2
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
|
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/ActivityHandlerTest.java
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
|
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/AppDataHandlerTest.java
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
|
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/MessageHandlerTest.java
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
|
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/PersonHandlerTest.java
|
View
|
1
2
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
Total messages: 10
|