org.cafesip.jiplet
Class JipletSession

java.lang.Object
  extended by org.cafesip.jiplet.ScopedVariables
      extended by 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().


Constructor Summary
protected JipletSession(JipletContext context, SessionInfo session)
          A constructor for this class.
 
Method Summary
 void invalidate()
          Frees up the session-related resources.
 
Methods inherited from class org.cafesip.jiplet.ScopedVariables
getAttribute, getAttributeNames, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JipletSession

protected JipletSession(JipletContext context,
                        SessionInfo session)
A constructor for this class.

Parameters:
context -
id -
Method Detail

invalidate

public void invalidate()
Frees up the session-related resources.



http://www.cafesip.org