Class MutableBoundRequest

    • Method Detail

      • getSessionMap

        public Map<String,​Object> getSessionMap​(boolean create)
        Description copied from interface: BoundRequest

        Get the current session map.

        A BoundRequest may be backed by a data store that only creates sessions on demand. It is recommended that if the session is not created on demand, or that the session has already been created (but is not required by this access) that the session is returned as it allows the conversation context to work more efficiently.

        Specified by:
        getSessionMap in interface BoundRequest
        Parameters:
        create - if true, then a session must be created
        Returns:
        the session map; null may be returned if create is false