|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.barracuda.plankton.data.DefaultStateMap
org.enhydra.barracuda.plankton.data.ObjectRepository
org.enhydra.barracuda.plankton.data.ObjectRepository.SessionRepository
The basic idea behind this is that we want to wrap the session as a ObjectRepository object. In order to make this work, it's important that we don't actually cause the session to be instantiated unless absolutely necessary
Nested Class Summary |
Nested classes inherited from class org.enhydra.barracuda.plankton.data.ObjectRepository |
ObjectRepository.SessionRepository |
Field Summary |
Fields inherited from class org.enhydra.barracuda.plankton.data.ObjectRepository |
custom, global, local, name, rawSessions, session, sessionIDs, softGlobal, softsession, weakGlobal, weaksession |
Fields inherited from class org.enhydra.barracuda.plankton.data.DefaultStateMap |
props |
Constructor Summary | |
ObjectRepository.SessionRepository()
|
|
ObjectRepository.SessionRepository(javax.servlet.http.HttpServletRequest ireq)
|
|
ObjectRepository.SessionRepository(String iname)
|
Method Summary | |
void |
clearState()
clear all state information |
javax.servlet.http.HttpSession |
getSession()
|
Object |
getState(Object key)
get a property in this StateMap |
List |
getStateKeys()
get a List of the keys for this StateMap (implementation is an ArrayList) |
Map |
getStateValues()
get a copy of the underlying Map that holds the state values |
void |
putState(Object key,
Object val)
set a property in this StateMap |
protected void |
registerSession()
|
Object |
removeState(Object key)
remove a property in this StateMap. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectRepository.SessionRepository()
public ObjectRepository.SessionRepository(String iname)
public ObjectRepository.SessionRepository(javax.servlet.http.HttpServletRequest ireq)
Method Detail |
protected void registerSession()
public void putState(Object key, Object val)
DefaultStateMap
putState
in interface StateMap
putState
in class DefaultStateMap
key
- the key objectval
- the value objectpublic Object getState(Object key)
DefaultStateMap
getState
in interface StateMap
getState
in class DefaultStateMap
key
- the key object
public Object removeState(Object key)
DefaultStateMap
removeState
in interface StateMap
removeState
in class DefaultStateMap
key
- the key object
public List getStateKeys()
DefaultStateMap
getStateKeys
in interface StateMap
getStateKeys
in class DefaultStateMap
public Map getStateValues()
DefaultStateMap
getStateValues
in interface StateMap
getStateValues
in class DefaultStateMap
public void clearState()
DefaultStateMap
clearState
in interface StateMap
clearState
in class DefaultStateMap
public javax.servlet.http.HttpSession getSession()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |