Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(91)

Issue 25058: JSON-RPC equivalent of makeRequest

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 6 months ago by louiscryan
Modified:
16 years, 6 months ago
Reviewers:
shindig.remailer
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 18

Patch Set 2 : Updated patch #

Total comments: 10

Patch Set 3 : Updated with latest #

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

Messages

Total messages: 10
louiscryan
16 years, 6 months ago (2009-03-04 07:09:23 UTC) #1
brian
Can we share more code with MakeRequestHandler? http://codereview.appspot.com/25058/diff/1/25 File java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth/OAuthArguments.java (right): http://codereview.appspot.com/25058/diff/1/25#newcode151 Line 151: useToken ...
16 years, 6 months ago (2009-03-04 20:01:30 UTC) #2
louiscryan
Thanks for the review Brian. Updated patch included http://codereview.appspot.com/25058/diff/1/25 File java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth/OAuthArguments.java (right): http://codereview.appspot.com/25058/diff/1/25#newcode151 Line 151: ...
16 years, 6 months ago (2009-03-09 22:25:15 UTC) #3
louiscryan
Updated patch
16 years, 6 months ago (2009-03-10 00:42:11 UTC) #4
louiscryan
test
16 years, 6 months ago (2009-03-10 04:16:26 UTC) #5
beaton
http://codereview.appspot.com/25058/diff/1012/1044 File java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java (right): http://codereview.appspot.com/25058/diff/1012/1044#newcode106 Line 106: if (request.getUri().getScheme()== null) { Does this ever happen? ...
16 years, 6 months ago (2009-03-10 21:58:31 UTC) #6
louiscryan
New patch forthcoming... http://codereview.appspot.com/25058/diff/1012/1044 File java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java (right): http://codereview.appspot.com/25058/diff/1012/1044#newcode106 Line 106: if (request.getUri().getScheme()== null) { On ...
16 years, 6 months ago (2009-03-11 02:25:42 UTC) #7
louiscryan
Updated with latest
16 years, 6 months ago (2009-03-11 08:09:30 UTC) #8
louiscryan
On 2009/03/11 08:09:30, louiscryan wrote: > Updated with latest Forwarding test
16 years, 6 months ago (2009-03-11 22:53:01 UTC) #9
louiscryan
16 years, 6 months ago (2009-03-11 22:53:56 UTC) #10
On 2009/03/11 22:53:01, louiscryan wrote:
> On 2009/03/11 08:09:30, louiscryan wrote:
> > Updated with latest
> 
> Forwarding test

Forwarding test 2
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b