|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.fe.statemachine.base.sessionmanagers.UserSession com.bankframe.fe.statemachine.ext.sessionmanagers.UserSession com.bankframe.fe.statemachine.ext.sessionmanagers.servlet.UserSession
Field Summary |
Fields inherited from interface com.bankframe.fe.statemachine.base.sessionmanagers.IUserSession |
STATE_ID_SOURCE_REQUEST, STATE_ID_SOURCE_REQUEST_THEN_SESSION, STATE_ID_SOURCE_SESSION, STATE_ID_SOURCE_SESSION_THEN_REQUEST, STATE_ID_SOURCE_UNDEFINED |
Constructor Summary | |
UserSession(javax.servlet.http.HttpSession httpSession)
Creates new UserSession. |
Method Summary | |
void |
addStateVisit(IState state,
IResponseData responseData)
Records a new state visit, adding it to the history of this session. |
IStateVisit |
getHistory(IState state)
Returns the most recent state visit which contains an immediate child of the given state. |
IStateVisit |
getHistoryStar(IState state)
Returns the most recent state visit which contains a child of the given state. |
javax.servlet.http.HttpSession |
getHttpSession()
This method returns the HttpSession given in the constructor. |
java.lang.String |
getId()
The sessionId for this session. |
void |
invalidate()
This method nullifies the references between this and all other objects, allowing this to be unloaded. |
Methods inherited from class com.bankframe.fe.statemachine.ext.sessionmanagers.UserSession |
clearAll, clearAllHistory, clearKeys, getAttribute, getAttributeNames, setAttribute |
Methods inherited from class com.bankframe.fe.statemachine.base.sessionmanagers.UserSession |
addAuthToken, getLocale, getMostRecentVisit, getSessionData, getStateIdSource, hasAllAuthTokens, hasAuthToken, removeAllAuthTokens, removeAuthToken, setLocale, setStateIdSource, wasStateVisited |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bankframe.fe.statemachine.base.sessionmanagers.IUserSession |
addAuthToken, getLocale, getMostRecentVisit, getSessionData, getStateIdSource, hasAllAuthTokens, hasAuthToken, removeAllAuthTokens, removeAuthToken, setLocale, setStateIdSource, wasStateVisited |
Constructor Detail |
public UserSession(javax.servlet.http.HttpSession httpSession)
Method Detail |
public java.lang.String getId()
public void invalidate()
invalidate
in class UserSession
public javax.servlet.http.HttpSession getHttpSession()
public IStateVisit getHistoryStar(IState state)
If no such state visit exists, this method returns an IStateVisit that contains the given state and an empty IResponseData.
This is a synchronized wrapper about the superclass method.
getHistoryStar
in interface IUserSession
getHistoryStar
in class UserSession
state
- the state being visited
public void addStateVisit(IState state, IResponseData responseData)
This is a synchronized wrapper about the superclass method.
addStateVisit
in interface IUserSession
addStateVisit
in class UserSession
state
- the state being visitedresponseData
- the response data being given to the viewpublic IStateVisit getHistory(IState state)
If no such state visit exists, this method returns an IStateVisit that contains the given state and an empty IResponseData.
This is a synchronized wrapper about the superclass method.
getHistory
in interface IUserSession
getHistory
in class UserSession
state
- the state being visited
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |