    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.jigsaw.servlet.JigsawHttpSessionContext

    java.lang.Object
       |
       +----org.w3c.jigsaw.servlet.JigsawHttpSessionContext

public class JigsawHttpSessionContext
extends Object
implements HttpSessionContext, PropertyMonitoring

##

JigsawHttpSessionContext(httpd, ServletProps)

##

addSession(JigsawHttpSession)
  Add a session in this context.
getIds()
  Returns an enumeration of all of the session IDs in this context.
getSession(String)
  Returns the session bound to the specified session ID.
propertyChanged(String)
  PropertyMonitoring implementation.
removeOldestIdleSession()
removeSession(String)
  Remove a session of this session context.
sweepSession()
  Remove sessions with idle time > max idle time

##

JigsawHttpSessionContext

     public JigsawHttpSessionContext(httpd server,
                                     ServletProps props)

##

propertyChanged

     public boolean propertyChanged(String name)

  PropertyMonitoring implementation.

sweepSession

     protected synchronized void sweepSession()

  Remove sessions with idle time > max idle time

removeOldestIdleSession

     protected synchronized void removeOldestIdleSession()

getIds

     public Enumeration getIds()

  Returns an enumeration of all of the session IDs in this context.

  Returns:
    an enumeration of all session IDs in this context.

getSession

     public HttpSession getSession(String sessionId)

  Returns the session bound to the specified session ID.

  Parameters:
    sessionID - - the ID of a particular session object
  Returns:
    the session. Returns null if the session ID does not refer to a valid session.

addSession

     protected synchronized String addSession(JigsawHttpSession session)

  Add a session in this context.

  Parameters:
    session - - The JigsawHttpSession to add.
  Returns:
    The session ID.

removeSession

     protected void removeSession(String id)

  Remove a session of this session context.

  Parameters:
    id - - The session ID.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index