playframework/Play20 — pull request #42 by julienrf (2011-12-18 11:18:48+00:00)
Title: [#68] Provide a Cookies API for Java

This patch provides an API similar to the Scala API to handle cookies.
Example of use:

```java
public class Application extends Controller {

public static Result index() {
// Read cookies
Http.Cookie cookie = request().cookies().get("foo");
if (cookie.value().equals("bar")) {
…
}

// Set cookies
response().setCookie("bar", "baz");
response().setCookie("bar", "baz", 3600);

// Discard cookies
response().discardCookies("foo", "bar");

return ok();
}
}
```