public class EnhancedCookieGenerator
extends CookieGenerator
CookieGenerator sets additionally header attribute | Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_COOKIE_PATH |
static boolean |
DEFAULT_HTTP_ONLY |
| Constructor and Description |
|---|
EnhancedCookieGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(HttpServletResponse response,
java.lang.String cookieValue) |
protected boolean |
canUseDefaultPath() |
java.lang.String |
getCookieName() |
protected boolean |
isHttpOnly() |
void |
setCookieName(java.lang.String cookieName) |
protected void |
setEnhancedCookiePath(Cookie cookie)
Sets dynamically the
Cookie#setPath(String) value using available
HttpServletRequest#getContextPath(). |
void |
setHttpOnly(boolean httpOnly)
Marker to choose between only cookie based session and http header as addition
|
void |
setUseDefaultPath(boolean useDefaultPath)
Adjusts either dynamic
Cookie#setPath(String) or static assignment. |
public static final boolean DEFAULT_HTTP_ONLY
public static final boolean DEFAULT_COOKIE_PATH
public void setCookieName(java.lang.String cookieName)
protected boolean isHttpOnly()
public void setHttpOnly(boolean httpOnly)
protected boolean canUseDefaultPath()
public void setUseDefaultPath(boolean useDefaultPath)
Cookie#setPath(String) or static assignment. If true a cookie path is calculated by
setEnhancedCookiePath(Cookie) method.public void addCookie(HttpServletResponse response,
java.lang.String cookieValue)
protected void setEnhancedCookiePath(Cookie cookie)
Cookie#setPath(String) value using available
HttpServletRequest#getContextPath().public java.lang.String getCookieName()
Copyright © 2018 SAP SE. All Rights Reserved.