playframework/Play20 — pull request #278 by julienrf (2012-04-30 18:54:53+00:00)
Title: Add a helper to retrieve the first value of a query string parameter

## Summary

### Scala API

* Add `QueryString` class, extending `Map[String, Seq[String]]`, with a method `getString` retrieving the first value of a given query string parameter. Example:

``` scala
import play.api.mvc.QueryString.getString
def index = Action { request =>
val foo: Option[String] = equest.queryString.getString("foo")
Ok
}
```

### Java API

* Define a `QueryString` class, subclassing `HashMap` so it is fully backward source compatible.
* Define a `public String getString(String key)` method to the `QueryString` class. Example:

``` java
public static Result index() {
String foo = request().queryString().getString("foo");
return ok();
}
```