org.apache.myfaces.context.portlet
Class SessionMap

java.lang.Object
  extended by java.util.AbstractMap<String,V>
      extended by org.apache.myfaces.util.AbstractThreadSafeAttributeMap<Object>
          extended by org.apache.myfaces.context.portlet.SessionMap
All Implemented Interfaces:
Map<String,Object>

public class SessionMap
extends AbstractThreadSafeAttributeMap<Object>

Portlet scope PortletSession attibutes as Map.

Version:
$Revision: 1000662 $ $Date: 2010-09-23 18:11:42 -0500 (Thu, 23 Sep 2010) $
Author:
Stan Silvert (latest modification by $Author: lu4242 $)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 void clear()
          This will clear the session without invalidation.
protected  Object getAttribute(String key)
           
protected  Enumeration<String> getAttributeNames()
           
 void putAll(Map t)
           
protected  void removeAttribute(String key)
           
protected  void setAttribute(String key, Object value)
           
 
Methods inherited from class org.apache.myfaces.util.AbstractThreadSafeAttributeMap
containsKey, containsValue, entrySet, get, isEmpty, keySet, put, remove, size, values
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getAttribute

protected Object getAttribute(String key)
Specified by:
getAttribute in class AbstractThreadSafeAttributeMap<Object>

setAttribute

protected void setAttribute(String key,
                            Object value)
Specified by:
setAttribute in class AbstractThreadSafeAttributeMap<Object>

removeAttribute

protected void removeAttribute(String key)
Specified by:
removeAttribute in class AbstractThreadSafeAttributeMap<Object>

getAttributeNames

protected Enumeration<String> getAttributeNames()
Specified by:
getAttributeNames in class AbstractThreadSafeAttributeMap<Object>

putAll

public void putAll(Map t)
Specified by:
putAll in interface Map<String,Object>
Overrides:
putAll in class AbstractThreadSafeAttributeMap<Object>

clear

public void clear()
This will clear the session without invalidation. If no session has been created, it will simply return.

Specified by:
clear in interface Map<String,Object>
Overrides:
clear in class AbstractThreadSafeAttributeMap<Object>


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.