|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.barracuda.core.util.data.ServletRequestParameterStateMap
The implementation provides a StateMap bridge to a ServletRequest object's paramter values. By this, we mean that this class allows you to access ServletRequest paramters through the StateMap interface. Unlike the ServletRequest parameters, this class will handle null keys, values. Note however, that it's read-only. Put requests are silently ignored.
Field Summary | |
protected javax.servlet.ServletRequest |
request
|
Constructor Summary | |
ServletRequestParameterStateMap(javax.servlet.ServletRequest irequest)
Public constructor. |
Method Summary | |
javax.servlet.ServletRequest |
getRequest()
get a reference to the underlying ServletRequest |
java.lang.Object |
getState(java.lang.Object key)
get a property in this StateMap. |
java.util.List |
getStateKeys()
get a List of the keys for this StateMap (implementation is an ArrayList) |
java.util.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(java.lang.Object key,
java.lang.Object val)
set a property in this StateMap - not implemented because the servlet API doesn't allow you to set parameters |
java.lang.Object |
removeState(java.lang.Object key)
remove a property in this StateMap - not implemented because the servlet API doesn't allow you to set parameters |
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 ServletRequestParameterStateMap(javax.servlet.ServletRequest irequest)
Method Detail |
public void putState(java.lang.Object key, java.lang.Object val)
putState
in interface StateMap
key
- the key objectval
- the value objectpublic java.lang.Object getState(java.lang.Object key)
getState
in interface StateMap
key
- the key object
public java.lang.Object removeState(java.lang.Object key)
removeState
in interface StateMap
key
- the key object
public java.util.List getStateKeys()
getStateKeys
in interface StateMap
public java.util.Map getStateValues()
getStateValues
in interface StateMap
public javax.servlet.ServletRequest getRequest()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |