Class SessionData

    • Method Detail

      • init

        public void init​(Object data)
        Initialize the application tool.
        Specified by:
        init in interface ApplicationTool
        Parameters:
        data - initialization data
      • get

        public Object get​(String key)
        Gets the data stored under the key. Null will be returned if the key does not exist or if null was stored under the key.

        To check for a key with a null value use containsKey(java.lang.String).

        Parameters:
        key - key under which the data is stored.
        Returns:
        Object stored under the key.
      • containsKey

        public boolean containsKey​(String key)
        Determines is a given key is stored.
        Parameters:
        key - the key to check for
        Returns:
        true if the key was found
      • put

        public void put​(String key,
                        Object value)
        Stores the data. If the key already exists, the value will be overwritten.
        Parameters:
        key - key under which the data will be stored.
        value - data to store under the key. Null values are allowed.
      • clear

        public void clear()
        Clears all data