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

Issue 114801: Refactor SessionHandler and BrowserChannelClient to allow other OOPHM clients than HtmlUnit (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
2 years, 2 months ago by tbroyer
Modified:
1 year, 11 months ago
Reviewers:
amitmanjhi, jat
CC:
Base URL:
http://google-web-toolkit.googlecode.com/svn/trunk/
Visibility:
Public.

Description

There's a TODO(amitmanjhi) in HtmlUnitSessionHandler to refactor SessionHandler,
and the current situation makes it impossible for me to implement OOPHM in Adobe
AIR (well, unless I write a full-fledged OOPHM client).

So here's a patch that factors out a SessionHandlerClient from
HtmlUnitSessionHandler (breaking all references between BrowserChannelClient and
HtmlUnit), and pushing down a bunch of methods from SessionHandler into a new
SessionHandlerServer (all those methods that were implemented in
HtmlUnitSessionHandler as throwing an UnsupportedOperationException).

This patch does not do any tidying of no-op or "silly" methods (sendFreeValues
is a no-op, as javaObjectsToFree is always empty; and invokeSpecial should never
be called on the client side), it's just straightforward refactoring, thanks to
Eclipse (extract superclass, pull up, push down).

I've renamed HtmlUnitSessionHandler's getHtmlPage to getSynchronizationObject,
'cause it really doesn't matter which type of object it is, getHtmlPage() was
only used as the synchronization object for synchronized blocks.

I checked that it compiles OK and both BrowserChannelTest and
BrowserChannelServerTest are green.

Patch Set 1

Patch Set 2 : Removes need for UnsupportedOperationException, adds generics to SessionHandler

Total comments: 1

Messages

Total messages: 15
tbroyer
2 years, 2 months ago #1
jat
I really think this is too big a change to make between the RC and ...
2 years, 2 months ago #2
jat
Ok, I think we can work on getting this into trunk now. To do that, ...
2 years, 1 month ago #3
tbroyer
On 2009/12/10 14:49:27, jat wrote: > Ok, I think we can work on getting this ...
1 year, 11 months ago #4
jat
On 2010/02/09 10:04:05, tbroyer wrote: > Any chance of having it into 2.1? Yes -- ...
1 year, 11 months ago #5
amitmanjhi
I will take a look at this in a few weeks, after I am done ...
1 year, 11 months ago #6
amitmanjhi
I quickly looked at the changes and they look okay. We can get this patch ...
1 year, 11 months ago #7
tbroyer
On 2010/02/10 22:40:22, amitmanjhi wrote: > > @tbroyer: Can you update the patch to address ...
1 year, 11 months ago #8
jat
LGTM with some formatting issues. I assume you have run tests, both using HtmlUnit and ...
1 year, 11 months ago #9
amitmanjhi
LGTM. Thanks for the patch. I tried to apply the patch to a not-too-old trunk ...
1 year, 11 months ago #10
tbroyer
On 2010/02/18 00:56:27, amitmanjhi wrote: > LGTM. Thanks for the patch. > > I tried ...
1 year, 11 months ago #11
amitmanjhi
The patch does apply cleanly against the current trunk. I just applied the patch and ...
1 year, 11 months ago #12
jat
On 2010/02/19 00:40:57, amitmanjhi wrote: > The patch does apply cleanly against the current trunk. ...
1 year, 11 months ago #13
amitmanjhi
Just tested it with FF 3.6 and a test app created using webAppCreator. On 2010/02/19 ...
1 year, 11 months ago #14
tbroyer
1 year, 11 months ago #15
On 2010/02/19 00:40:57, amitmanjhi wrote:
> 
> If you are okay with the minor formatting changes, I can commit the patch on
> your behalf. 

LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld revision f51cb906c4ad+