Package com.priint.pubserver.session
Class PubServerMap
- java.lang.Object
-
- com.priint.pubserver.session.PubServerMap
-
- All Implemented Interfaces:
java.io.Serializable
public class PubServerMap extends java.lang.Object implements java.io.SerializableMap of attributes of simple pubserver.- Since:
- 4.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PubServerMap()Default constructorPubServerMap(java.util.Map<java.lang.String,java.lang.Object> map)The constructor which set map with session attributes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.String key)java.util.Map<java.lang.String,java.lang.Object>getMap()voidput(java.lang.String key, java.lang.Object object)Put new element into session attribute mapjava.lang.Objectremove(java.lang.String key, java.lang.Object object)Remove element from session attribute mapvoidsetMap(java.util.Map<java.lang.String,java.lang.Object> map)Set map with all session attributes
-
-
-
Method Detail
-
getMap
public java.util.Map<java.lang.String,java.lang.Object> getMap()
- Returns:
- Map with all session attributes
-
setMap
public void setMap(java.util.Map<java.lang.String,java.lang.Object> map)
Set map with all session attributes
-
get
public java.lang.Object get(java.lang.String key)
- Parameters:
key- Session attribute key- Returns:
- Object from all session attributes map
-
put
public void put(java.lang.String key, java.lang.Object object)Put new element into session attribute map- Parameters:
key- Session attribute keyobject- Session attribute object
-
remove
public java.lang.Object remove(java.lang.String key, java.lang.Object object)Remove element from session attribute map- Parameters:
key- Session attribute keyobject- Session attribute object- Returns:
- The previous value associated with key, or null if there was no mapping for key.
-
-