|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.request.portlet.extractor.SessionScopeExtractor
public class SessionScopeExtractor
Extracts attributes from the session scope of a portlet request.
Constructor Summary | |
---|---|
SessionScopeExtractor(javax.portlet.PortletRequest request,
int scope)
Constructor. |
Method Summary | |
---|---|
Enumeration<String> |
getKeys()
The enumeration of the keys of the stored attributes. |
Object |
getValue(String key)
Returns the value of the attribute with the given key. |
void |
removeValue(String name)
Removes an attribute. |
void |
setValue(String name,
Object value)
Sets a value for the given key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionScopeExtractor(javax.portlet.PortletRequest request, int scope)
request
- The request.scope
- The subscope (application or portlet).Method Detail |
---|
public void setValue(String name, Object value)
Addable
setValue
in interface Addable<Object>
name
- The key of the attribute.value
- The value of the attribute.public void removeValue(String name)
HasRemovableKeys
removeValue
in interface HasRemovableKeys<Object>
name
- The key of the attribute to remove.public Enumeration<String> getKeys()
HasKeys
getKeys
in interface HasKeys<Object>
public Object getValue(String key)
HasKeys
getValue
in interface HasKeys<Object>
key
- The key of the attribute.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |