public abstract class AbstractCookieStore extends Object implements CookieStore
SessionStore.StoreContext
Modifier and Type | Field and Description |
---|---|
protected Logger |
log |
SURVIVES_IN_INVALIDATING_DEFAULT
Constructor and Description |
---|
AbstractCookieStore() |
Modifier and Type | Method and Description |
---|---|
String |
getDomain() |
SessionConfig.CookieConfig |
getIdCookieConfig() |
int |
getMaxAge() |
String |
getName() |
String |
getPath() |
boolean |
getSecure() |
String |
getStoreName() |
protected void |
init()
初始化cookie store。
|
void |
init(String storeName,
SessionConfig sessionConfig)
初始化cookie store。
|
boolean |
isHttpOnly() |
boolean |
isSurvivesInInvalidating() |
void |
setDomain(String domain) |
void |
setHttpOnly(boolean httpOnly) |
void |
setMaxAge(int maxAge) |
void |
setName(String name) |
void |
setPath(String path) |
void |
setSecure(boolean secure) |
void |
setSurvivesInInvalidating(boolean survivesInInvalidating) |
String |
toString() |
protected void |
toString(ToStringBuilder.MapBuilder mb) |
protected void |
writeCookie(javax.servlet.http.HttpServletResponse response,
String cookieName,
String cookieValue)
向response中写入cookie。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
commit, getAttributeNames, invaldiate, loadAttribute
protected final Logger log
public String getStoreName()
public SessionConfig.CookieConfig getIdCookieConfig()
public String getName()
public void setName(String name)
public String getDomain()
public void setDomain(String domain)
public String getPath()
public void setPath(String path)
public int getMaxAge()
public void setMaxAge(int maxAge)
public boolean isHttpOnly()
public void setHttpOnly(boolean httpOnly)
public boolean getSecure()
public void setSecure(boolean secure)
public boolean isSurvivesInInvalidating()
public void setSurvivesInInvalidating(boolean survivesInInvalidating)
public final void init(String storeName, SessionConfig sessionConfig) throws Exception
init
in interface SessionStore
Exception
protected void writeCookie(javax.servlet.http.HttpServletResponse response, String cookieName, String cookieValue)
protected void toString(ToStringBuilder.MapBuilder mb)
Copyright © 2006–2018 TinyGroup. All rights reserved.