|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.plankton.data.DefaultStateMap
org.barracudamvc.plankton.data.ObjectRepository
org.barracudamvc.plankton.data.ObjectRepository.SessionRepository
public static class 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/interfaces inherited from class org.barracudamvc.plankton.data.ObjectRepository |
---|
ObjectRepository.SessionRepository |
Field Summary |
---|
Fields inherited from class org.barracudamvc.plankton.data.ObjectRepository |
---|
custom, DEFAULT, global, local, name, rawSessions, session, sessionIDs, SOFT, SOFT_THREADSAFE, softGlobal, softsession, THREADSAFE, WEAK, WEAK_THREADSAFE, weakGlobal, weaksession |
Fields inherited from class org.barracudamvc.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 |
Set |
getStateKeys()
get a keyset for this StateMap (whether or not the set is backed by the data store depends on the implementation). |
Map |
getStateStore()
get a Map that holds the state values (whether or not the Map is backed by the data store depends on the implementation). |
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 Set getStateKeys()
DefaultStateMap
getStateKeys
in interface StateMap
getStateKeys
in class DefaultStateMap
public Map getStateStore()
DefaultStateMap
getStateStore
in interface StateMap
getStateStore
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 |