org.zeroexchange.web.session
Class MapSessionDataContainer

java.lang.Object
  extended by org.zeroexchange.web.session.MapSessionDataContainer
All Implemented Interfaces:
Serializable, SessionDataContainer

public class MapSessionDataContainer
extends Object
implements SessionDataContainer, Serializable

Map implementation of the data container.

Author:
black
See Also:
Serialized Form

Constructor Summary
MapSessionDataContainer()
           
 
Method Summary
<T> T
get(String key)
          Returns data by the key.
 void put(String key, Object value)
          Assigns the data for the specified key.
<T> T
remove(String key)
          Returns data by the key and removes it from the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapSessionDataContainer

public MapSessionDataContainer()
Method Detail

get

public <T> T get(String key)
Returns data by the key.

Specified by:
get in interface SessionDataContainer

remove

public <T> T remove(String key)
Returns data by the key and removes it from the container.

Specified by:
remove in interface SessionDataContainer

put

public void put(String key,
                Object value)
Assigns the data for the specified key.

Specified by:
put in interface SessionDataContainer


Copyright © 2013. All Rights Reserved.