public class ApplicationSessionCookieConfig extends java.lang.Object implements SessionCookieConfig
| Constructor and Description |
|---|
ApplicationSessionCookieConfig() |
| 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)
Determine the name to use for the session cookie for the provided
context.
|
static java.lang.String |
getSessionUriParamName(Context context)
Determine the name to use for the session cookie for the provided
context.
|
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 java.lang.String getComment()
getComment in interface SessionCookieConfigpublic java.lang.String getDomain()
getDomain in interface SessionCookieConfigpublic int getMaxAge()
getMaxAge in interface SessionCookieConfigpublic java.lang.String getName()
getName in interface SessionCookieConfigpublic java.lang.String getPath()
getPath in interface SessionCookieConfigpublic boolean isHttpOnly()
isHttpOnly in interface SessionCookieConfigpublic boolean isSecure()
isSecure in interface SessionCookieConfigpublic void setComment(java.lang.String comment)
setComment in interface SessionCookieConfigpublic void setDomain(java.lang.String domain)
setDomain in interface SessionCookieConfigpublic void setHttpOnly(boolean httpOnly)
setHttpOnly in interface SessionCookieConfigpublic void setMaxAge(int maxAge)
javax.servlet.SessionCookieConfigsetMaxAge in interface SessionCookieConfigmaxAge - the maximum age to setpublic void setName(java.lang.String name)
setName in interface SessionCookieConfigpublic void setPath(java.lang.String path)
setPath in interface SessionCookieConfigpublic void setSecure(boolean secure)
setSecure in interface SessionCookieConfigpublic 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 securepublic static java.lang.String getSessionCookieName(Context context)
context - public static java.lang.String getSessionUriParamName(Context context)
context - Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.