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

Issue 2104046: Separate JS content processing logic from JsServlet (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 4 months ago by henry.saputra
Modified:
15 years, 4 months ago
Reviewers:
Paul Lindner, dev-remailer
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Separate the JavaScript content retrieval and the validation to external handler. The change will allow better customization/extension in addition to UriManager and Versioner without having to make modification to the JsServlet class itself. This follows the pattern from rest of the Shindig's servlets to allow delegation for execution and make servlet class provide skeleton/flow of execution to make implementers of Shindig dont have override the whole get function. Highlights of the change: -) Create new JsHandler class that is responsible to handle processing logic for the request to the JsServlet. -) Delegate the JS content retrieval from FeatureRegistry to the JsHandler class. -) Add protected method to the JsServlet for post processing to allow overrideable behavior for checking status and set the response header.

Patch Set 1 #

Patch Set 2 : Forgot to add transient modifier #

Patch Set 3 : Fix comments #

Patch Set 4 : Add new class to contain response from JsHandler #

Patch Set 5 : Move StringBuilder instantiation #

Patch Set 6 : Added javadoc comment. #

Patch Set 7 : Add static nested class for GagetContext #

Total comments: 4

Patch Set 8 : Update based on Paul's comment. #

Patch Set 9 : Clean up some comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -110 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsHandler.java View 1 2 3 4 5 6 7 8 1 chunk +212 lines, -0 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsServlet.java View 1 2 3 4 5 6 7 7 chunks +30 lines, -110 lines 0 comments Download

Messages

Total messages: 6
henry.saputra
Propose changes to separate JS content processing logic from JsServlet to external JsHandler class. This ...
15 years, 4 months ago (2010-09-03 01:10:37 UTC) #1
henry.saputra
Added dev@shindig.apache.org to the reviewers.
15 years, 4 months ago (2010-09-04 00:48:41 UTC) #2
Paul Lindner
looks good, just minor stylistic suggestions.. http://codereview.appspot.com/2104046/diff/21001/22001 File java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsHandler.java (right): http://codereview.appspot.com/2104046/diff/21001/22001#newcode188 java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsHandler.java:188: * GagdetContext implementation ...
15 years, 4 months ago (2010-09-04 06:30:53 UTC) #3
henry.saputra
Resolve issue/suggestions from Paul. Uploaded the latest patch file. - Henry http://codereview.appspot.com/2104046/diff/21001/22001 File java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsHandler.java (right): ...
15 years, 4 months ago (2010-09-04 06:54:39 UTC) #4
Paul Lindner
ship it!
15 years, 4 months ago (2010-09-04 07:30:56 UTC) #5
henry.saputra
15 years, 4 months ago (2010-09-04 16:36:09 UTC) #6
On 2010/09/04 07:30:56, Paul Lindner wrote:
> ship it!

Thanks for the review Paul. 
Changes checked in with svn commit: r992634.

- Henry
Sign in to reply to this message.

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