public class CookieHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
COOKIE_AGE_PARAM |
Modifier | Constructor and Description |
---|---|
protected |
CookieHandler(javax.servlet.ServletConfig config) |
protected |
CookieHandler(String maxAge) |
Modifier and Type | Method and Description |
---|---|
protected void |
addNewCookie(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String name,
String value) |
protected String |
getCookie(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String name) |
protected String |
getCookieNullIfEmpty(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String name) |
String |
getMaxAge() |
protected static final String COOKIE_AGE_PARAM
protected CookieHandler(String maxAge)
protected CookieHandler(javax.servlet.ServletConfig config)
protected String getCookieNullIfEmpty(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String name)
protected String getCookie(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String name)
protected void addNewCookie(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String name, String value)
req
- servlet requestresp
- servlet responsename
- cookie namevalue
- cookie valuepublic String getMaxAge()
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.