Class PubServerMap

  • All Implemented Interfaces:
    java.io.Serializable

    public class PubServerMap
    extends java.lang.Object
    implements java.io.Serializable
    Map of attributes of simple pubserver.
    Since:
    4.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PubServerMap()
      Default constructor
      PubServerMap​(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.Object get​(java.lang.String key)  
      java.util.Map<java.lang.String,​java.lang.Object> getMap()  
      void put​(java.lang.String key, java.lang.Object object)
      Put new element into session attribute map
      java.lang.Object remove​(java.lang.String key, java.lang.Object object)
      Remove element from session attribute map
      void setMap​(java.util.Map<java.lang.String,​java.lang.Object> map)
      Set map with all session attributes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PubServerMap

        public PubServerMap()
        Default constructor
      • PubServerMap

        public PubServerMap​(java.util.Map<java.lang.String,​java.lang.Object> map)
        The constructor which set map with 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 key
        object - 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 key
        object - Session attribute object
        Returns:
        The previous value associated with key, or null if there was no mapping for key.