Here are the examples of the java api play.mvc.Http.Cookie taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : JavaApi.java
with MIT License
from vangav
with MIT License
from vangav
public static Result readCookie(String name) {
Cookie cookie = request().cookies().get(name);
if (cookie != null) {
return ok("Cookie " + name + " has value: " + cookie.value());
} else {
return ok();
}
}