|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.core.ApplicationSessionCookieConfig
public class ApplicationSessionCookieConfig
| Constructor Summary | |
|---|---|
ApplicationSessionCookieConfig()
|
|
| Method Summary | |
|---|---|
static Cookie |
createSessionCookie(Context context,
String sessionId,
boolean secure)
Creates a new session cookie for the given session ID |
String |
getComment()
|
String |
getDomain()
|
int |
getMaxAge()
|
String |
getName()
|
String |
getPath()
|
static String |
getSessionCookieName(Context context)
Deprecated. Replaced by SessionConfig.getSessionCookieName(Context). This
will be removed in Tomcat 8.0.x. |
static 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(String comment)
|
void |
setDomain(String domain)
|
void |
setHttpOnly(boolean httpOnly)
|
void |
setMaxAge(int maxAge)
Sets the maximum age. |
void |
setName(String name)
|
void |
setPath(String path)
|
void |
setSecure(boolean secure)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationSessionCookieConfig()
| Method Detail |
|---|
public String getComment()
getComment in interface SessionCookieConfigpublic String getDomain()
getDomain in interface SessionCookieConfigpublic int getMaxAge()
getMaxAge in interface SessionCookieConfigpublic String getName()
getName in interface SessionCookieConfigpublic String getPath()
getPath in interface SessionCookieConfigpublic boolean isHttpOnly()
isHttpOnly in interface SessionCookieConfigpublic boolean isSecure()
isSecure in interface SessionCookieConfigpublic void setComment(String comment)
setComment in interface SessionCookieConfigpublic void setDomain(String domain)
setDomain in interface SessionCookieConfigpublic void setHttpOnly(boolean httpOnly)
setHttpOnly in interface SessionCookieConfigpublic void setMaxAge(int maxAge)
javax.servlet.SessionCookieConfig
setMaxAge in interface SessionCookieConfigmaxAge - the maximum age to setpublic void setName(String name)
setName in interface SessionCookieConfigpublic void setPath(String path)
setPath in interface SessionCookieConfigpublic void setSecure(boolean secure)
setSecure in interface SessionCookieConfig
public static Cookie createSessionCookie(Context context,
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 String getSessionCookieName(Context context)
SessionConfig.getSessionCookieName(Context). This
will be removed in Tomcat 8.0.x.
context - @Deprecated public static String getSessionUriParamName(Context context)
SessionConfig.getSessionUriParamName(Context). This
will be removed in Tomcat 8.0.x.
context -
|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||