|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.ActionForm
leon.view.web.struts.action.LyStrutsSessionBean
public class LyStrutsSessionBean
Type : leon.view.web.struts.LyStrutsSessionBean
This bean should be declared as a global bean in the struts-config.xml
file with the
<form-beans>
tag.
It should also be used in the session scope of all Leonardi action mappings declarations.
This bean manages the LySession
birth and death and makes the link with the
HttpSession
provided it has been properly declared.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static java.util.HashMap<LySession,LyStrutsSessionBean> |
_sessionBeans
Keep the information between sessions and beans. |
static java.lang.String |
DEFAULT_SESSION
Identifier of the default session. |
Constructor Summary | |
---|---|
LyStrutsSessionBean()
Empty constructor : used for Java reflection. |
Method Summary | |
---|---|
void |
beginRequest()
Stores the current session in the Leonardi application. |
void |
checkSession(javax.servlet.http.HttpServletRequest request)
Checks the existence of a Leonardi session. |
void |
closeCurrentSession(javax.servlet.http.HttpServletRequest request)
Close the current session and close http session if needed. |
void |
closeCurrentSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session)
Close the current session and close http session if needed. |
void |
closeCurrentSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session,
boolean closeHttpSession)
Close the current session and close http session if needed. |
void |
endRequest()
Removes the current session from the Leonardi application. |
LyWebApplication |
getApplication()
Gets the application of the current session. |
LyEnvironment |
getEnvironment()
Gets the environment of the current session. |
LyController |
getLastShownController()
Returns the last shown controller (used only in LY_REPLAY mode). |
LySession |
getSession()
Gets the associated LySession. |
java.lang.String |
getStaticAction(java.lang.String actionId)
Gets the id of static action previously stored in this bean. |
LyStrutsViewManager |
getViewManager()
Gets the view manager related to the current session. |
boolean |
isReplayMode()
Indicates if current session is in replay mode. |
boolean |
isSessionInProgress()
|
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
This method is called by the Struts request processor each time this bean is involed in a request to reset its properties. |
void |
setLastShownController(LyController controller)
Set the last shown controller (used only in LY_REPLAY mode). |
void |
setSession(LySession session)
Sets the associated LySession. |
void |
setStaticAction(java.lang.String actionId,
java.lang.String controllerId)
Stores a static action. |
static void |
swapSession(java.lang.Object session,
java.lang.Object oldSession,
java.lang.String applicationId)
Swap two sessions. |
Methods inherited from class org.apache.struts.action.ActionForm |
---|
getMultipartRequestHandler, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String DEFAULT_SESSION
public static java.util.HashMap<LySession,LyStrutsSessionBean> _sessionBeans
Constructor Detail |
---|
public LyStrutsSessionBean()
Method Detail |
---|
public static void swapSession(java.lang.Object session, java.lang.Object oldSession, java.lang.String applicationId)
session
- the new sessionoldSession
- the old sessionapplicationId
- the application idpublic void beginRequest()
public void endRequest()
public boolean isSessionInProgress()
public LyWebApplication getApplication()
public LyEnvironment getEnvironment()
public LySession getSession()
setSession(LySession)
public java.lang.String getStaticAction(java.lang.String actionId)
actionId
- Identifier of a Leonardi action.
setStaticAction(String, String)
public LyStrutsViewManager getViewManager()
public void setLastShownController(LyController controller)
public LyController getLastShownController()
public boolean isReplayMode()
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
LyEnvironment
Locale with the struts Locale if needed.
reset
in class org.apache.struts.action.ActionForm
mapping
- The mapping used to select this instancerequest
- The servlet request we are processingpublic void setSession(LySession session)
session
- The leonardi session.getSession()
public void closeCurrentSession(javax.servlet.http.HttpServletRequest request)
request
- current http requestpublic void closeCurrentSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session)
request
- current http requestsession
- current http sessionpublic void closeCurrentSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session, boolean closeHttpSession)
request
- current http requestsession
- current http sessioncloseHttpSession
- indicates whether http session must be closedpublic void setStaticAction(java.lang.String actionId, java.lang.String controllerId)
actionId
- The identifier of a Leonardi action.controllerId
- The identifier of the related view controller.getStaticAction(String)
public void checkSession(javax.servlet.http.HttpServletRequest request)
request
- current http request
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |