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

java.lang.Object
  extended bycom.bankframe.fe.statemachine.ext.sessionmanagers.servlet.UserSessionManager
All Implemented Interfaces:
IUserSessionManager

public class UserSessionManager
extends java.lang.Object
implements IUserSessionManager


Field Summary
static java.lang.String SESSION_ATTRIBUTE_NAME
          The HttpSession will have an attribute added to it called "com.bankframe.fe.statemachine.base.sessionmanagers.servlet.SessionAttribute" which is the UserSession object.
 
Constructor Summary
UserSessionManager()
          Creates new UserSessionManager
 
Method Summary
 void deleteSession(IUserSession session)
          Deletes a session.
 IUserSession getSession(RequestContext requestContext)
          Returns an IUserSession based on the contents of the requestContext.
 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
 

Field Detail

SESSION_ATTRIBUTE_NAME

public static final java.lang.String SESSION_ATTRIBUTE_NAME
The HttpSession will have an attribute added to it called "com.bankframe.fe.statemachine.base.sessionmanagers.servlet.SessionAttribute" which is the UserSession object.

See Also:
Constant Field Values
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

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.

newResponseData

public IResponseData newResponseData()
Returns a new IResponseData implementor.

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

setProperties

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

Specified by:
setProperties in interface IUserSessionManager


Copyright © 2005, 2007, Oracle. All rights reserved.