|
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.Action
leon.view.web.struts.action.LyStrutsLeonardiAction
public abstract class LyStrutsLeonardiAction
Type : leon.view.web.struts.LyStrutsLeonardiAction
This Leonardi class implements the Action layer of the Struts framework.
This action is abstract and contains only usefull methods to be used for all Leonardi Struts
actions.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
ADDITIONAL_SCRIPTS_MAX_SIZE
Maximum length of Ajax refresh scripts before an entire refresh will be performed. |
static int |
GENERATED_PAGE_MAX_SIZE
Maximum length of generated pages. |
Fields inherited from class org.apache.struts.action.Action |
---|
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
Constructor Summary | |
---|---|
LyStrutsLeonardiAction()
|
Method Summary | |
---|---|
java.io.Writer |
beginRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
LyStrutsViewManager viewManager)
Performs some specific operations at the begining of a request. |
boolean |
checkSessionRegistered(LyStrutsSessionBean bean,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Check if current session is valid and redirect to home page if not. |
static java.lang.String |
decodeUrl(java.lang.String url)
Decodes an URL by replacing unauthorized characters. |
java.io.Writer |
dumpToFile(LyStrutsViewManager viewManager,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.io.Writer out)
Dump HTML content to files for debug. |
void |
endRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
LyStrutsViewManager viewManager,
java.io.Writer out)
Performs some specific operations at the end of a request. |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mappings,
org.apache.struts.action.ActionForm bean,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This basic implementation of the Struts Action Model returns null (no response). |
static void |
generateAdditionalScripts(LySession session,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.io.Writer out)
Generates the scripts created by web components in the standard output. |
java.lang.String |
getContextReativePath(javax.servlet.http.HttpServletRequest request,
java.lang.String page)
Removes the context path from URLS to enable forwarding into a JSP. |
static java.lang.String |
getParameter(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
Retrieves a parameter in an http request and decode its value. |
void |
setNoCacheHeaders(javax.servlet.http.HttpServletResponse response,
int delay)
Sets an expiration delay used by the cache : modify the HTTP response header. |
void |
setRequestAttributes(javax.servlet.http.HttpServletRequest request,
LySession session)
Stores some usefull information as attribute inside an HTTP request. |
Methods inherited from class org.apache.struts.action.Action |
---|
execute, getServlet, perform, perform, setServlet |
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 int ADDITIONAL_SCRIPTS_MAX_SIZE
public static int GENERATED_PAGE_MAX_SIZE
Constructor Detail |
---|
public LyStrutsLeonardiAction()
Method Detail |
---|
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mappings, org.apache.struts.action.ActionForm bean, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
execute
in class org.apache.struts.action.Action
mappings
- - The ActionMapping used to select this instancebean
- - The optional ActionForm bean for this request (if any)request
- - The HTTP request we are processingresponse
- - The HTTP response we are creating
java.lang.Exception
public boolean checkSessionRegistered(LyStrutsSessionBean bean, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
bean
- - The optional ActionForm bean for this request (if any)request
- - The HTTP request we are processingresponse
- - The HTTP response we are creating
java.lang.Exception
public java.io.Writer beginRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, LyStrutsViewManager viewManager)
request
- The current HTTP request.response
- The current HTTP response.viewManager
- The current view manager.
public static java.lang.String decodeUrl(java.lang.String url)
url
- The URL to decode.
public void endRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, LyStrutsViewManager viewManager, java.io.Writer out) throws java.io.IOException
request
- The current HTTP request.response
- The current HTTP response.viewManager
- The current view manager.
java.io.IOException
public java.io.Writer dumpToFile(LyStrutsViewManager viewManager, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.io.Writer out) throws java.io.IOException
viewManager
- the view managerrequest
- the requestresponse
- the responseout
- the out writer
java.io.IOException
public static void generateAdditionalScripts(LySession session, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.io.Writer out) throws java.io.IOException
session
- The current session.request
- The current HTTP request.response
- The current HTTP response.out
- The response output.
java.io.IOException
public java.lang.String getContextReativePath(javax.servlet.http.HttpServletRequest request, java.lang.String page)
request
- Current HTTP request.page
- A JSP or HTML page with possibly a context path.
public static java.lang.String getParameter(javax.servlet.http.HttpServletRequest request, java.lang.String name)
request
- The HTTP requestname
- The name of the parameter.
public void setNoCacheHeaders(javax.servlet.http.HttpServletResponse response, int delay)
response
- Current HTTP response.delay
- The expiration delay.public void setRequestAttributes(javax.servlet.http.HttpServletRequest request, LySession session)
request
- Current HTTP request.session
- Current user session
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |