Reviewers: jlabanca, Description: I propose adding a new class Window.LocationBuilder that makes it easy to create or modify URLs. We've run into a couple of issues where we want to modify a single query parameter and found that a class like this would be useful. Feedback would be appreciated.
Users can create an empty builder or generate one based on the current page using the following methods. See the Showcase sample in the attached patch set for an example. // Empty builder Window.LocationBuilder.create() // Predefined with values from current page Window.Location.createBuilder() LocationBuilder supports the following APIs to build the URL. Most methods are fairly robust. For example, the host can be "google.com" or "google.com:80". build() get/setHash(String) get/setHost(String) get/setPath(String) get/setPort(int) get/setProtocol(String) Parameters are set using the following API: get/setParameter(String, String) get/setParameter(String, List<String>) remoteParameter(String) Please review this at http://gwt-code-reviews.appspot.com/75802 Affected files: samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java user/src/com/google/gwt/user/client/Window.java --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---