LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.controller
Class LyJQController

java.lang.Object
  extended by leon.view.web.jquery.controller.LyJQEventController
      extended by leon.view.web.jquery.controller.LyJQController
All Implemented Interfaces:
org.springframework.web.servlet.mvc.Controller
Direct Known Subclasses:
LyJQAnswerController, LyJQAuditController, LyJQChartController, LyJQCommandController, LyJQComponentController, LyJQDownloadController, LyJQExitController, LyJQGanttController, LyJQInvokeActionController, LyJQLoginController, LyJQMapController, LyJQPageController, LyJQPageEventController, LyJQPopupController, LyJQPortletController, LyJQPrintController, LyJQPushController, LyJQRichTextController, LyJQSelectionController, LyJQTableController, LyJQUpFrameController, LyJQUploadController

public abstract class LyJQController
extends LyJQEventController

Ly jquery controllers abstract class


Field Summary
static java.util.HashMap<java.lang.String,LyJQSession> _sessions
          The list of associated LySession instances of the HttpSession.
static java.lang.String DEFAULT_SESSION
          Identifier of the default session.
 
Constructor Summary
LyJQController()
           
 
Method Summary
static LyWebApplication createApplication(java.lang.String applicationId, java.lang.String configFile, java.lang.String realPath)
          Creates a new Leonardi application.
static void generateCssFile(LyApplication application)
          Generate CSS File.
 LyWebApplication getApplication()
          Gets the application of the current session.
 void getApplicationContext(javax.servlet.http.HttpServletRequest request)
          return application Context Spring bean
 void getApplicationId(javax.servlet.http.HttpServletRequest request)
           
 java.lang.String getContextRelativePath(javax.servlet.http.HttpServletRequest request, java.lang.String page)
          Removes the context path from URLS to enable forwarding into a JSP.
 LyDemand getDemand(javax.servlet.http.HttpServletRequest request, LyEnvironment environment)
           
 LyEnvironment getEnvironment()
          Gets the environment of the current session.
 org.springframework.web.servlet.ModelAndView getLoginView()
           
 java.lang.String getRootUrlFromRequest(javax.servlet.http.HttpServletRequest request)
          getRootUrlFromRequest
 LySession getSession()
           
static java.lang.String getSessionKey(javax.servlet.http.HttpSession httpSession, java.lang.String target)
           
 void setNoCacheHeaders(javax.servlet.http.HttpServletResponse response, int delay)
          Sets an expiration delay used by the cache : modify the HTTP response header.
 void setSession(LySession session)
           
static void swapSession(java.lang.Object newSession, java.lang.Object oldSession, java.lang.String applicationId)
           
 
Methods inherited from class leon.view.web.jquery.controller.LyJQEventController
checkSessionValidity, completeUrlParams, getViewManager, handleRequest, setRequestAttributes, writeUpdateScripts
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SESSION

public static final java.lang.String DEFAULT_SESSION
Identifier of the default session.

See Also:
Constant Field Values

_sessions

public static transient java.util.HashMap<java.lang.String,LyJQSession> _sessions
The list of associated LySession instances of the HttpSession.

Constructor Detail

LyJQController

public LyJQController()
Method Detail

swapSession

public static void swapSession(java.lang.Object newSession,
                               java.lang.Object oldSession,
                               java.lang.String applicationId)

getSessionKey

public static java.lang.String getSessionKey(javax.servlet.http.HttpSession httpSession,
                                             java.lang.String target)

getDemand

public LyDemand getDemand(javax.servlet.http.HttpServletRequest request,
                          LyEnvironment environment)
Specified by:
getDemand in class LyJQEventController

getApplication

public LyWebApplication getApplication()
Gets the application of the current session.
It wakes it up if necessary.

Returns:
the application of the current session.

getEnvironment

public LyEnvironment getEnvironment()
Gets the environment of the current session.

Returns:
the environment of the current session.

createApplication

public static LyWebApplication createApplication(java.lang.String applicationId,
                                                 java.lang.String configFile,
                                                 java.lang.String realPath)
Creates a new Leonardi application.

Returns:
the newly created application.

generateCssFile

public static void generateCssFile(LyApplication application)
Generate CSS File. Replace all $XX$ variables in skin.


setNoCacheHeaders

public void setNoCacheHeaders(javax.servlet.http.HttpServletResponse response,
                              int delay)
Sets an expiration delay used by the cache : modify the HTTP response header.

Parameters:
response - Current HTTP response.
delay - The expiration delay.

getContextRelativePath

public java.lang.String getContextRelativePath(javax.servlet.http.HttpServletRequest request,
                                               java.lang.String page)
Removes the context path from URLS to enable forwarding into a JSP.
Make a path relative to the Servlet context for the given page.
The path beeing build is relative to the root directory of the current WEB application.

Parameters:
request - Current HTTP request.
page - A JSP or HTML page with possibly a context path.
Returns:
the page ready for a forward.

setSession

public void setSession(LySession session)
Parameters:
_session - the _session to set

getSession

public LySession getSession()
Specified by:
getSession in class LyJQEventController

getRootUrlFromRequest

public java.lang.String getRootUrlFromRequest(javax.servlet.http.HttpServletRequest request)
getRootUrlFromRequest

Parameters:
request -
Returns:
root url

getLoginView

public org.springframework.web.servlet.ModelAndView getLoginView()
Returns:
login view

getApplicationContext

public void getApplicationContext(javax.servlet.http.HttpServletRequest request)
return application Context Spring bean

Parameters:
http - request

getApplicationId

public void getApplicationId(javax.servlet.http.HttpServletRequest request)

(c) January 2013 - W4 S.A.

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