LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsSession

java.lang.Object
  extended by leon.app.LyDataSession
      extended by leon.app.LySession
          extended by leon.view.web.LyWebSession
              extended by leon.view.web.struts.LyStrutsSession
All Implemented Interfaces:
LyEvaluator, LyGuiClientInterface, LyTimerClientInterface

public class LyStrutsSession
extends LyWebSession

The instance of session for web viewers.

See Also:
LySession

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.app.LyDataSession
LyDataSession.State
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.app.LySession
DEFAULT, DEMAND_EXIT, DRAGGED_OBJECT, METRIC_OBJECT_ID_KEY, POPUP_VIEW, SESSION_TIMEOUT
 
Fields inherited from class leon.app.LyDataSession
_nbSessions, _sessionsCounter
 
Constructor Summary
LyStrutsSession(LyApplication application, boolean registerSession)
          Constructor of web session.
LyStrutsSession(LyApplication application, boolean registerSession, java.lang.String sessionId)
          Constructor of web session.
 
Method Summary
 void close()
          Closes the session.
 javax.servlet.http.HttpServletRequest getCurrentRequest()
          Gets the current request.
 javax.servlet.http.HttpServletResponse getCurrentResponse()
          Gets the current response.
 javax.servlet.http.HttpSession getHttpSession()
          Returns the Http session associated with this web session.
 void setSessionBean(LyStrutsSessionBean bean, javax.servlet.http.HttpSession httpSession)
          Sets the session bean and Http session for this web session.
 
Methods inherited from class leon.app.LySession
addController, addOutlineController, addResetListener, checkControllerId, closeViews, closeViews, confirmClosing, confirmExit, confirmExit, controllerHidden, controllerShown, createStickerWindow, enableAction, enableTransverseAction, endTimer, exit, getApplication, getController, getController, getControllerCount, getControllerStackSize, getLastViewController, getLastViewController, getMasterSession, getPluginId, getPrintThreadCount, getRootContextController, getSessionTimeout, getSlaveSessions, getStackLastController, getTempFile, getViewManager, getViewManager, guiStart, guiStop, interruptPrintThreads, invokeAction, invokeExtraAction, isChatting, isIdle, loadUserPreferences, loadUserStickers, login, login, notifyOutline, processAboutAction, processAction, processExtraAction, processHelpAction, processLogAction, processVersionAction, register, removeController, removeOutlineController, removeResetListener, reset, resetTimeout, resetUndoRedo, sessionTimeout, sessionTimeout, setChatting, setIdle, setLanguage, setMasterSession, setPluginId, setSkin, showView, start, storeTempFile, toString, validateAction, writeXml
 
Methods inherited from class leon.app.LyDataSession
addInfoListener, addValue, dumpLocks, getContextManager, getCreationTime, getDataSource, getDataSource, getEnvironment, getHardLock, getId, getKeyValue, getObjectsByName, getObjectSource, getParent, getSessionBehavior, getSoftLock, getState, getSubSessions, getUser, getValue, handleException, hasTransaction, isClosed, isObjectVisible, isRegistered, isValid, notifyInfoListeners, putObjectSource, releaseHardLock, releaseSoftLock, removeInfoListener, removeObjectSource, setTimeZone, setUser, setValid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyStrutsSession

public LyStrutsSession(LyApplication application,
                       boolean registerSession)
Constructor of web session.

Parameters:
application - The application owner of the session.
registerSession - Indicates if the session must be registered on the application (default is true), or if this is a temporary session which should be ignored.

LyStrutsSession

public LyStrutsSession(LyApplication application,
                       boolean registerSession,
                       java.lang.String sessionId)
Constructor of web session.

Parameters:
application - The application owner of the session.
registerSession - Indicates if the session must be registered on the application (default is true), or if this is a temporary session which should be ignored.
id - The identifier of the session.
Method Detail

getCurrentRequest

public javax.servlet.http.HttpServletRequest getCurrentRequest()
Gets the current request.

Overrides:
getCurrentRequest in class LyWebSession
Returns:
the request

getCurrentResponse

public javax.servlet.http.HttpServletResponse getCurrentResponse()
Gets the current response.

Overrides:
getCurrentResponse in class LyWebSession
Returns:
the response

setSessionBean

public void setSessionBean(LyStrutsSessionBean bean,
                           javax.servlet.http.HttpSession httpSession)
Sets the session bean and Http session for this web session.


getHttpSession

public javax.servlet.http.HttpSession getHttpSession()
Returns the Http session associated with this web session.


close

public void close()
Description copied from class: LySession
Closes the session. Removes the session from its application, sets all the controllers, the object sources and the view manager free.

Overrides:
close in class LySession

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com