org.abstracthorizon.danube.session
Interface SessionManager

All Known Subinterfaces:
HTTPSessionManager
All Known Implementing Classes:
SimpleCookieSessionManager, SimpleSessionManager

public interface SessionManager

This interface defines simple session handling interface. It defines a factory that keeps track of sessions.

Author:
Daniel Sendula

Method Summary
 Object findSession(Object sessionId, boolean create)
          Finds existing session or creates new one if there is no existing session and create parameter is set to true.
 void removeSession(Object session)
          This object removes existing session
 

Method Detail

findSession

Object findSession(Object sessionId,
                   boolean create)
Finds existing session or creates new one if there is no existing session and create parameter is set to true. Session is found based on sessionId object.

Parameters:
sessionId - object that represents the session. Usually a string extracted from request
create - should new session be created if there is no existing session
Returns:
existing session object, new session if existing session is not there and create param is set to true or null otherwise.

removeSession

void removeSession(Object session)
This object removes existing session

Parameters:
session - session to be removed


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.