org.cafesip.jiplet
Class JipletSession
java.lang.Object
org.cafesip.jiplet.ScopedVariables
org.cafesip.jiplet.JipletSession
public class JipletSession
- extends ScopedVariables
The class encapsulates the session-scope variables framework. A session identifies the SIP
endpoint (UAC). For each session, this object is unique. It supports scoped variables. Therefore
the jiplet application can store session-related information in this object. Unlike HTTP sessions (servlet),
there is no way to automatically invalidate a session by using an inactivity timeout. Therefore, it is the
responsibility of the jiplet application to invalidate the session by calling the invalidate() method. The invalidate()
method frees up the resources associated with the session. A jiplet can call the Jiplet.getSession() methods
to retrieve the session object.
A jipplet application can store, retrieve and remove session-scope variables by calling the methods provided
by the base class - ScopedVariables().
|
Method Summary |
void |
invalidate()
Frees up the session-related resources. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JipletSession
protected JipletSession(JipletContext context,
SessionInfo session)
- A constructor for this class.
- Parameters:
context - id -
invalidate
public void invalidate()
- Frees up the session-related resources.
http://www.cafesip.org