org.springframework.webflow.context.servlet
Class HttpSessionMap

java.lang.Object
  extended by org.springframework.binding.collection.StringKeyedMapAdapter
      extended by org.springframework.webflow.context.servlet.HttpSessionMap
All Implemented Interfaces:
Map, SharedMap

public class HttpSessionMap
extends StringKeyedMapAdapter
implements SharedMap

A Shared Map backed by the Servlet HTTP session, for accessing session scoped attributes.

Author:
Keith Donald

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
HttpSessionMap(javax.servlet.http.HttpServletRequest request)
          Create a map wrapping the session of given request.
 
Method Summary
 Object getMutex()
          Returns the shared mutex that may be synchronized on using a synchronized block.
 
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
equals, 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
 

Constructor Detail

HttpSessionMap

public HttpSessionMap(javax.servlet.http.HttpServletRequest request)
Create a map wrapping the session of given request.

Method Detail

getMutex

public Object getMutex()
Description copied from interface: SharedMap
Returns the shared mutex that may be synchronized on using a synchronized block. The returned mutex is guaranteed to be non-null. Example usage:
 synchronized (sharedMap.getMutex()) {
        // do synchronized work
 }
 

Specified by:
getMutex in interface SharedMap
Returns:
the mutex