com.bankframe.fe.statemachine.ext.sessionmanagers.inmemory
Class UserSessionManager

java.lang.Object
  |
  +--com.bankframe.fe.statemachine.ext.sessionmanagers.inmemory.UserSessionManager
All Implemented Interfaces:
IUserSessionManager

public class UserSessionManager
extends java.lang.Object
implements IUserSessionManager


Constructor Summary
UserSessionManager()
          Creates new UserSessionManager
 
Method Summary
 void deleteSession(IUserSession session)
          Deletes a session.
 IUserSession getNewSession()
          Returns a new IUserSession.
 IUserSession getNewSession(java.lang.String userSessionId)
           
 IUserSession getSession(RequestContext requestContext)
          Returns an IUserSession based on the contents of the requestContext.
 IUserSession getSession(java.lang.String id)
          Returns the IUserSession with the given Id.
 IResponseData newResponseData()
          Returns a new IResponseData implementor.
 void setProperties(java.util.Properties properties)
          Sets a Properties for this userSessionManager.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserSessionManager

public UserSessionManager()
Creates new UserSessionManager

Method Detail

deleteSession

public void deleteSession(IUserSession session)
Deletes a session.

Specified by:
deleteSession in interface IUserSessionManager
Parameters:
session - the session to be deleted

getNewSession

public IUserSession getNewSession(java.lang.String userSessionId)

getNewSession

public IUserSession getNewSession()
Returns a new IUserSession.


getSession

public IUserSession getSession(java.lang.String id)
Returns the IUserSession with the given Id.

Returns:
IUserSession

newResponseData

public IResponseData newResponseData()
Returns a new IResponseData implementor.

Specified by:
newResponseData in interface IUserSessionManager
Returns:
a new implementor of IResponseData

getSession

public IUserSession getSession(RequestContext requestContext)
Returns an IUserSession based on the contents of the requestContext. If the requestContext contains an IUserSession, that is returned. If the request or response in the requestContext refers to an existing IUserSession, the existing session is retrieved and returned. If there is no relevant existing IUserSession, a new IUserSession is created. This method must also ensure the requestContext contains the IUserSession when the method completes.

Specified by:
getSession in interface IUserSessionManager
Parameters:
requestContext - the request context.
Returns:
IUserSession instance.

setProperties

public void setProperties(java.util.Properties properties)
Sets a Properties for this userSessionManager.

Specified by:
setProperties in interface IUserSessionManager


Copyright © 2005 Siebel Systems, Inc. All rights reserved.