public class CookieHandler
extends org.springframework.web.util.CookieGenerator
| Constructor and Description |
|---|
CookieHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(javax.servlet.http.HttpServletResponse response,
String cookieValue,
Integer maxAge)
Add a cookie with the given value and age to the response,
using the cookie descriptor settings of this generator.
|
protected javax.servlet.http.Cookie |
createCookie(String cookieValue)
don't set domain when it is empty
|
javax.servlet.http.Cookie |
get(javax.servlet.http.HttpServletRequest request) |
String |
getValue(javax.servlet.http.HttpServletRequest request) |
public javax.servlet.http.Cookie get(javax.servlet.http.HttpServletRequest request)
public String getValue(javax.servlet.http.HttpServletRequest request)
protected javax.servlet.http.Cookie createCookie(String cookieValue)
createCookie in class org.springframework.web.util.CookieGeneratorpublic void addCookie(javax.servlet.http.HttpServletResponse response,
String cookieValue,
Integer maxAge)
response - the HTTP response to add the cookie tocookieValue - the value of the cookie to addmaxAge - max age value of the cookie to addCopyright © 2020. All rights reserved.