com.jdon.container.visitor.data
类 SessionContext
java.lang.Object
com.jdon.container.visitor.data.SessionContext
- 所有已实现的接口:
- Serializable
public class SessionContext
- extends Object
- implements Serializable
this class inlude those datas that read from the web container or others.
these datas is stateful, and it's scope is one instance per client.
usually they are saved in httpSession of the web container.
but these datas are different from the components that saved in httpsession.
it is like the stateful components. it include state data.
the way of visiting the SessionContext that saved in httpSession
targetMetaRequest.setVisitableName(ComponentKeys.SESSIONCONTEXT_FACTORY);
SessionContext sessionContext = (SessionContext)cm.visit(targetMetaRequest);
- 作者:
- banq
- 另请参见:
create a new SessionContext,
序列化表格
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
SessionContext
public SessionContext(int maxSize)
setArrtibute
public void setArrtibute(String key,
Object object)
getArrtibute
public Object getArrtibute(String key)
remove
public void remove(String key)
removeAll
public void removeAll()
Copyright © 2013. All Rights Reserved.