Class CookieHandler
- java.lang.Object
-
- org.springframework.web.util.CookieGenerator
-
- org.bardframework.commons.web.cookie.CookieHandler
-
public class CookieHandler extends org.springframework.web.util.CookieGenerator
-
-
Constructor Summary
Constructors Constructor Description CookieHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCookie(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.CookiecreateCookie(String cookieValue)don't set domain when it is emptyjavax.servlet.http.Cookieget(javax.servlet.http.HttpServletRequest request)StringgetValue(javax.servlet.http.HttpServletRequest request)
-
-
-
Method Detail
-
get
public javax.servlet.http.Cookie get(javax.servlet.http.HttpServletRequest request)
-
getValue
public String getValue(javax.servlet.http.HttpServletRequest request)
-
createCookie
protected javax.servlet.http.Cookie createCookie(String cookieValue)
don't set domain when it is empty- Overrides:
createCookiein classorg.springframework.web.util.CookieGenerator
-
addCookie
public 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.- Parameters:
response- the HTTP response to add the cookie tocookieValue- the value of the cookie to addmaxAge- max age value of the cookie to add
-
-