|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.barracuda.plankton.data.ServletRequestStateMap
The implementation provides a StateMap bridge to a ServletRequest object. By this, we mean that this class allows you to treat an ServletRequest as a StateMap. Unlike the ServletRequest, this class will handle null keys, values.
Field Summary | |
protected javax.servlet.ServletRequest |
request
|
Constructor Summary | |
ServletRequestStateMap(javax.servlet.ServletRequest irequest)
Public constructor. |
Method Summary | |
void |
clearState()
clear all state information |
javax.servlet.ServletRequest |
getRequest()
get a reference to the underlying ServletRequest |
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 (in this case, we map all the attributes of the ServletRequest structure into a Map and return that) |
void |
putState(Object key,
Object val)
set a property in this StateMap |
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 |
Field Detail |
protected javax.servlet.ServletRequest request
Constructor Detail |
public ServletRequestStateMap(javax.servlet.ServletRequest irequest)
irequest
- the underlying servlet request structureMethod Detail |
public void putState(Object key, Object val)
putState
in interface StateMap
key
- the key objectval
- the value objectpublic Object getState(Object key)
getState
in interface StateMap
key
- the key object
public Object removeState(Object key)
removeState
in interface StateMap
key
- the key object
public List getStateKeys()
getStateKeys
in interface StateMap
public Map getStateValues()
getStateValues
in interface StateMap
public void clearState()
clearState
in interface StateMap
public javax.servlet.ServletRequest getRequest()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |