I just rewhacked a large part of the web api client code which you'll
need to understand if you're writing java clients for the ogoglio
services. From my checkin comment:
Refactored the WebAPI classes like so:
WebAPIDescriptor: handles all of the URL creation mojo for a given
Ogoglio service
WebAPIAuthenticator: contains login information and fetches account
and auth documents
WebAPIClientWire: handles all HTTP communication
WebAPIClient: wraps the descriptor, wire, and authenticator to provide
easy functions for manipulating the remote ogoglio service
NOTE: WebAPIClient instances are no longer bound to a single space
These changes make it easier for us to test because the individual
objects can be mocked more easily, and in general removes a lot of the
intertwined nastiness that had grown up in WebAPIClient.
NOTE: spaceui.js has changed to reflect that the viewer applet now
takes a spaceID parameter instead of a spaceURI. If you have custom
HTML wrapping the vi ewer jar you'll need to change it after this
update.
NOTE 2: There are two tests in templatesync which don't pass, mostly
because I'm still getting my feet under me with RMock and I'm going to
bother Ian until he helps me. Also, the Persist tests are hard coded
for a specific db setup, which Ian is going to fix Real Soon Now.
- Trevor
|