public class ApplicationSessionCookieConfig extends java.lang.Object implements SessionCookieConfig
Constructor and Description |
---|
ApplicationSessionCookieConfig(StandardContext context) |
Modifier and Type | Method and Description |
---|---|
static Cookie |
createSessionCookie(Context context,
java.lang.String sessionId,
boolean secure)
Creates a new session cookie for the given session ID
|
java.lang.String |
getComment() |
java.lang.String |
getDomain() |
int |
getMaxAge() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
static java.lang.String |
getSessionCookieName(Context context)
Deprecated.
Replaced by
SessionConfig.getSessionCookieName(Context) . This
will be removed in Tomcat 8.0.x. |
static java.lang.String |
getSessionUriParamName(Context context)
Deprecated.
Replaced by
SessionConfig.getSessionUriParamName(Context) . This
will be removed in Tomcat 8.0.x. |
boolean |
isHttpOnly() |
boolean |
isSecure() |
void |
setComment(java.lang.String comment) |
void |
setDomain(java.lang.String domain) |
void |
setHttpOnly(boolean httpOnly) |
void |
setMaxAge(int maxAge)
Sets the maximum age.
|
void |
setName(java.lang.String name) |
void |
setPath(java.lang.String path) |
void |
setSecure(boolean secure) |
public ApplicationSessionCookieConfig(StandardContext context)
public java.lang.String getComment()
getComment
in interface SessionCookieConfig
public java.lang.String getDomain()
getDomain
in interface SessionCookieConfig
public int getMaxAge()
getMaxAge
in interface SessionCookieConfig
public java.lang.String getName()
getName
in interface SessionCookieConfig
public java.lang.String getPath()
getPath
in interface SessionCookieConfig
public boolean isHttpOnly()
isHttpOnly
in interface SessionCookieConfig
public boolean isSecure()
isSecure
in interface SessionCookieConfig
public void setComment(java.lang.String comment)
setComment
in interface SessionCookieConfig
public void setDomain(java.lang.String domain)
setDomain
in interface SessionCookieConfig
public void setHttpOnly(boolean httpOnly)
setHttpOnly
in interface SessionCookieConfig
public void setMaxAge(int maxAge)
javax.servlet.SessionCookieConfig
setMaxAge
in interface SessionCookieConfig
maxAge
- the maximum age to setpublic void setName(java.lang.String name)
setName
in interface SessionCookieConfig
public void setPath(java.lang.String path)
setPath
in interface SessionCookieConfig
public void setSecure(boolean secure)
setSecure
in interface SessionCookieConfig
public static Cookie createSessionCookie(Context context, java.lang.String sessionId, boolean secure)
context
- The Context for the web applicationsessionId
- The ID of the session for which the cookie will be
createdsecure
- Should session cookie be configured as secure@Deprecated public static java.lang.String getSessionCookieName(Context context)
SessionConfig.getSessionCookieName(Context)
. This
will be removed in Tomcat 8.0.x.context
- @Deprecated public static java.lang.String getSessionUriParamName(Context context)
SessionConfig.getSessionUriParamName(Context)
. This
will be removed in Tomcat 8.0.x.context
- Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.