SK.gnome.dwarf.http
Interface SessionManager

All Known Implementing Classes:
RAMSessionManager

public interface SessionManager

This class provides the session management.

An implementation of the SessionManager interface should be added to the HTTPServer in order to enable the session tracking.


Method Summary
 Session getSession(Request request, java.lang.String id, boolean create)
          Returns the session for the given request.
 

Method Detail

getSession

public Session getSession(Request request,
                          java.lang.String id,
                          boolean create)
Returns the session for the given request.

A new session should be created if no session exists with the given id if the create argument is true.

Parameters:
request - the request
id - the session id
create - whether to create a new session if no session with the given id exists
Returns:
the session or null if no session exists with the given id and the create argument is false


Copyright (c) 1999-2005, Gnome Ltd. All rights reserved.