org.tinygroup.weblayer.webcontext.session.store
类 AbstractCookieStore

java.lang.Object
  继承者 org.tinygroup.weblayer.webcontext.session.store.AbstractCookieStore
所有已实现的接口:
HttpHeaderSessionStore, SessionStore, CookieStore
直接已知子类:
CookieStoreImpl, SingleValuedCookieStoreImpl

public abstract class AbstractCookieStore
extends Object
implements CookieStore

抽象的cookie store实现。

作者:
Michael Zhou

嵌套类摘要
 
从接口 org.tinygroup.weblayer.webcontext.session.SessionStore 继承的嵌套类/接口
SessionStore.StoreContext
 
字段摘要
protected  org.tinygroup.logger.Logger log
           
 
从接口 org.tinygroup.weblayer.webcontext.session.store.CookieStore 继承的字段
SURVIVES_IN_INVALIDATING_DEFAULT
 
构造方法摘要
AbstractCookieStore()
           
 
方法摘要
 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(org.tinygroup.commons.tools.ToStringBuilder.MapBuilder mb)
           
protected  void writeCookie(javax.servlet.http.HttpServletResponse response, String cookieName, String cookieValue)
          向response中写入cookie。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 org.tinygroup.weblayer.webcontext.session.SessionStore 继承的方法
commit, getAttributeNames, invaldiate, loadAttribute
 

字段详细信息

log

protected final org.tinygroup.logger.Logger log
构造方法详细信息

AbstractCookieStore

public AbstractCookieStore()
方法详细信息

getStoreName

public String getStoreName()

getIdCookieConfig

public SessionConfig.CookieConfig getIdCookieConfig()

getName

public String getName()

setName

public void setName(String name)

getDomain

public String getDomain()

setDomain

public void setDomain(String domain)

getPath

public String getPath()

setPath

public void setPath(String path)

getMaxAge

public int getMaxAge()

setMaxAge

public void setMaxAge(int maxAge)

isHttpOnly

public boolean isHttpOnly()

setHttpOnly

public void setHttpOnly(boolean httpOnly)

getSecure

public boolean getSecure()

setSecure

public void setSecure(boolean secure)

isSurvivesInInvalidating

public boolean isSurvivesInInvalidating()

setSurvivesInInvalidating

public void setSurvivesInInvalidating(boolean survivesInInvalidating)

init

public final void init(String storeName,
                       SessionConfig sessionConfig)
                throws Exception
初始化cookie store。

指定者:
接口 SessionStore 中的 init
抛出:
Exception

init

protected void init()
             throws Exception
初始化cookie store。

抛出:
Exception

writeCookie

protected void writeCookie(javax.servlet.http.HttpServletResponse response,
                           String cookieName,
                           String cookieValue)
向response中写入cookie。


toString

public final String toString()
覆盖:
Object 中的 toString

toString

protected void toString(org.tinygroup.commons.tools.ToStringBuilder.MapBuilder mb)


Copyright © 2006–2013 开源组织. All rights reserved.