spring-webflow

org.springframework.webflow.context.servlet
Class HttpSessionMap

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

public class HttpSessionMap
extends org.springframework.binding.collection.StringKeyedMapAdapter<java.lang.Object>
implements org.springframework.binding.collection.SharedMap<java.lang.String,java.lang.Object>

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
java.util.Map.Entry<K,V>
 
Constructor Summary
HttpSessionMap(javax.servlet.http.HttpServletRequest request)
          Create a map wrapping the session of given request.
 
Method Summary
protected  java.lang.Object getAttribute(java.lang.String key)
           
protected  java.util.Iterator<java.lang.String> getAttributeNames()
           
 java.lang.Object getMutex()
           
protected  void removeAttribute(java.lang.String key)
           
protected  void setAttribute(java.lang.String key, java.lang.Object value)
           
 
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
 

Constructor Detail

HttpSessionMap

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

Method Detail

getAttribute

protected java.lang.Object getAttribute(java.lang.String key)
Specified by:
getAttribute in class org.springframework.binding.collection.StringKeyedMapAdapter<java.lang.Object>

setAttribute

protected void setAttribute(java.lang.String key,
                            java.lang.Object value)
Specified by:
setAttribute in class org.springframework.binding.collection.StringKeyedMapAdapter<java.lang.Object>

removeAttribute

protected void removeAttribute(java.lang.String key)
Specified by:
removeAttribute in class org.springframework.binding.collection.StringKeyedMapAdapter<java.lang.Object>

getAttributeNames

protected java.util.Iterator<java.lang.String> getAttributeNames()
Specified by:
getAttributeNames in class org.springframework.binding.collection.StringKeyedMapAdapter<java.lang.Object>

getMutex

public java.lang.Object getMutex()
Specified by:
getMutex in interface org.springframework.binding.collection.SharedMap<java.lang.String,java.lang.Object>

spring-webflow