DescriptionSeparate 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 #
MessagesTotal messages: 6
|
||||||||||||||||||||||||||||