org.springframework.webflow.context.portlet
Class PortletSessionMap
java.lang.Object
org.springframework.binding.collection.StringKeyedMapAdapter
org.springframework.webflow.context.portlet.PortletSessionMap
- All Implemented Interfaces:
- java.util.Map, org.springframework.binding.collection.SharedMap
public class PortletSessionMap
- extends org.springframework.binding.collection.StringKeyedMapAdapter
- implements org.springframework.binding.collection.SharedMap
Shared map backed by the Portlet session for accessing session scoped attributes in a Portlet environment.
- Author:
- Keith Donald
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Constructor Summary |
PortletSessionMap(javax.portlet.PortletRequest request,
int scope)
Create a new map wrapping the session associated with given request. |
Methods inherited from class org.springframework.binding.collection.StringKeyedMapAdapter |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
PortletSessionMap
public PortletSessionMap(javax.portlet.PortletRequest request,
int scope)
- Create a new map wrapping the session associated with given request.
- Parameters:
request
- the current portlet requestscope
- the scope to access in the session, either PortletSession.APPLICATION_SCOPE
(global) or
PortletSession.PORTLET_SCOPE
getAttribute
protected java.lang.Object getAttribute(java.lang.String key)
- Specified by:
getAttribute
in class org.springframework.binding.collection.StringKeyedMapAdapter
setAttribute
protected void setAttribute(java.lang.String key,
java.lang.Object value)
- Specified by:
setAttribute
in class org.springframework.binding.collection.StringKeyedMapAdapter
removeAttribute
protected void removeAttribute(java.lang.String key)
- Specified by:
removeAttribute
in class org.springframework.binding.collection.StringKeyedMapAdapter
getAttributeNames
protected java.util.Iterator getAttributeNames()
- Specified by:
getAttributeNames
in class org.springframework.binding.collection.StringKeyedMapAdapter
getMutex
public java.lang.Object getMutex()
- Specified by:
getMutex
in interface org.springframework.binding.collection.SharedMap
Copyright © 2004-2007. All Rights Reserved.