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

Issue 1798042: Cleaning up HtmlAccelServlet (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 9 months ago by gagan.goku
Modified:
15 years, 9 months ago
Reviewers:
shindig.remailer, johnfargo, dev-remailer, cool-shindig-committers, vikaas.arora, zhoresh
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/java/gadgets/src
Visibility:
Public.

Description

Removing old way of registering GadgetRewriter for HtmlAccelServlet and some boilerplate code used for it since now accel servlet uses ResponseRewriterRegistry.

Patch Set 1 #

Patch Set 2 : fixing bad things #

Total comments: 6

Patch Set 3 : addressing comments #

Patch Set 4 : addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -56 lines) Patch
main/java/org/apache/shindig/gadgets/DefaultGadgetSpecFactory.java View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
main/java/org/apache/shindig/gadgets/render/GadgetRewritersProvider.java View 1 2 1 chunk +2 lines, -10 lines 0 comments Download
main/java/org/apache/shindig/gadgets/servlet/HtmlAccelServlet.java View 1 2 2 chunks +4 lines, -17 lines 0 comments Download
test/java/org/apache/shindig/gadgets/render/HtmlRendererTest.java View 1 2 4 chunks +1 line, -21 lines 0 comments Download
test/java/org/apache/shindig/gadgets/servlet/HtmlAccelServletTest.java View 1 2 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7
gagan.goku
15 years, 9 months ago (2010-07-11 15:27:21 UTC) #1
gagan.goku
fixing bad things
15 years, 9 months ago (2010-07-12 07:00:51 UTC) #2
vikaas.arora
Add some comment to the issue description defining the scope of the change. http://codereview.appspot.com/1798042/diff/7001/7 File ...
15 years, 9 months ago (2010-07-14 04:51:10 UTC) #3
gagan.goku
addressing comments
15 years, 9 months ago (2010-07-14 15:51:01 UTC) #4
gagan.goku
http://codereview.appspot.com/1798042/diff/7001/7 File main/java/org/apache/shindig/gadgets/DefaultGadgetSpecFactory.java (left): http://codereview.appspot.com/1798042/diff/7001/7#oldcode72 main/java/org/apache/shindig/gadgets/DefaultGadgetSpecFactory.java:72: } On 2010/07/14 04:51:10, vikaas.arora wrote: > Seems you ...
15 years, 9 months ago (2010-07-14 15:52:00 UTC) #5
johnfargo
LGTM, nice cleanup. Committing. On 2010/07/14 15:52:00, gagan.goku wrote: > http://codereview.appspot.com/1798042/diff/7001/7 > File main/java/org/apache/shindig/gadgets/DefaultGadgetSpecFactory.java (left): ...
15 years, 9 months ago (2010-07-14 20:18:34 UTC) #6
gagan.goku
15 years, 9 months ago (2010-07-14 20:20:17 UTC) #7
Thanks
Gagan

-- 
The only thing missing in life is background music.
-- Gagandeep Singh


On Thu, Jul 15, 2010 at 1:48 AM, <johnfargo@gmail.com> wrote:

> LGTM, nice cleanup. Committing.
>
>
> On 2010/07/14 15:52:00, gagan.goku wrote:
>
>> http://codereview.appspot.com/1798042/diff/7001/7
>> File
>>
> main/java/org/apache/shindig/gadgets/DefaultGadgetSpecFactory.java
> (left):
>
>  http://codereview.appspot.com/1798042/diff/7001/7#oldcode72
>> main/java/org/apache/shindig/gadgets/DefaultGadgetSpecFactory.java:72:
>>
> }
>
>> On 2010/07/14 04:51:10, vikaas.arora wrote:
>> > Seems you are now removing special code required for handling of
>>
> AccelServlet.
>
>> > Can you add few lines pertaining to the scope of the change to the
>>
> CL/Issue
>
>> > description.
>>
>
>  Added. This code is not required now because accel has moved to using
>> ResponseRewriterRegistry now.
>>
>
>  http://codereview.appspot.com/1798042/diff/7001/8
>> File
>>
> main/java/org/apache/shindig/gadgets/render/GadgetRewritersProvider.java
>
>> (left):
>>
>
>  http://codereview.appspot.com/1798042/diff/7001/8#oldcode52
>>
>
>
> main/java/org/apache/shindig/gadgets/render/GadgetRewritersProvider.java:52:
> }
>
>> On 2010/07/14 04:51:10, vikaas.arora wrote:
>> > Now there will only be one set of rewriters defined for Gadgets. No
>>
> special
>
>> set
>> > for Accel Servlet. Where (in GGS ?) do you plan to tailor this list
>>
> of
>
>> rewriters
>> > for AccelServlet ?
>>
>
>  Take a look at provideAccelResponseRewriters.
>>
>
>  http://codereview.appspot.com/1798042/diff/7001/9
>> File
>>
> main/java/org/apache/shindig/gadgets/servlet/HtmlAccelServlet.java
> (right):
>
>  http://codereview.appspot.com/1798042/diff/7001/9#newcode44
>> main/java/org/apache/shindig/gadgets/servlet/HtmlAccelServlet.java:44:
>>
> public
>
>> void setAccelHandler(AccelHandler accelHandler) {
>> On 2010/07/14 04:51:10, vikaas.arora wrote:
>> > The public method 'setHandler' name was apt. This Class
>>
> (HtmlAccelServlet)
>
>> > already signifies that the handler is Accel specific.
>>
>
>  Done.
>>
>
>
>
> http://codereview.appspot.com/1798042/show
>
Sign in to reply to this message.

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