Storing and retrieving session data is accomplished by using the following methods:
Table 1–7 SipApplicationSession Data Methods
Method |
Description |
---|---|
getAttributes(String id) |
Returns the object bound to the specified ID. Returns null if no such object ID exists. |
getAttributeNames() |
Returns an Iterator over the String IDs of the objects bound to this application session. |
setAttribute(String name, java.lang.Object attribute) |
Binds an object to the session using the specified String as the object's ID for later retrieval. |
removeAttribute(String name) |
Removes an object from the session by specifying the bound object's ID. |