List of usage examples for io.netty.handler.codec.http.cookie DefaultCookie name
String name
To view the source code for io.netty.handler.codec.http.cookie DefaultCookie name.
Click Source Link
From source file:gribbit.response.Response.java
License:Open Source License
/** * Set a cookie value.// w ww . ja v a 2s. com * * (As per RFC6295, the server can only return one cookie with a given name per response. We arbitrarily choose * the last value the cookie is set to as the one that is sent in the response, even if setCookie is called * multiple times for a given cookie name with different paths.) */ private Response setCookie(DefaultCookie cookie) { if (cookies == null) { cookies = new HashMap<>(); } cookies.put(cookie.name(), cookie); return this; }