playframework/playframework — pull request #2002 by wsargent (2013-11-08 02:22:46+00:00)
Title: Split WS API from Ning WS implementation

First pass only: this tries to keep new features to a minimum: once this gets committed then we start adding new methods and refactoring more.
Also note that this does not attempt to refactor OAuth, which still inherits from Signpost classes. There's a separate branch for that.

Moved all classes / traits to be in ws package, no nested WS._ import needed.
Aliased old types in the package object and aliased the types.
Moved Ning implementation out into ning._ package.
Added underlying[T] : T to avoid returning AnyRef (covariant types don't play well with Plugin model).
Made the Ning classes use composition instead of inheritance, provided a RequestBuilder and deprecated methods for places in the code relying on inherited public methods.
Made JavaWS use a distinct WSPlugin that will return Java versions of all classes.
Added a WSClient with a url() method to the API, threaded the client through WSRequestHolder/WSRequest.