|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.struts.action.RequestProcessor
org.apache.struts.tiles.TilesRequestProcessor
com.ivata.mask.web.struts.MaskTilesRequestProcessor
Extend from this class if you want to use Struts Tiles .
| Field Summary |
| Fields inherited from class org.apache.struts.tiles.TilesRequestProcessor |
definitionsFactory, log |
| Fields inherited from class org.apache.struts.action.RequestProcessor |
actions, INCLUDE_PATH_INFO, INCLUDE_SERVLET_PATH, moduleConfig, servlet |
| Constructor Summary | |
MaskTilesRequestProcessor(com.ivata.mask.MaskFactory maskFactory,
com.ivata.mask.persistence.PersistenceManager persistenceManager)
Initializes the mask factory, the value object locator and the the standard field value convertors. |
|
| Method Summary | |
protected org.apache.struts.action.Action |
createAction(java.lang.String className,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping)
Override this method to define how to create actions in your environment. |
protected org.apache.struts.action.ActionForm |
createActionForm(org.apache.struts.config.FormBeanConfig formBeanConfig,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping)
Override this method to define how to create action forms in your environment. |
protected MaskRequestProcessorImplementation |
getImplementation()
|
void |
init(org.apache.struts.action.ActionServlet servletParam,
org.apache.struts.config.ModuleConfig moduleConfigParam)
Refer to RequestProcessor.init(org.apache.struts.action.ActionServlet, org.apache.struts.config.ModuleConfig). |
protected org.apache.struts.action.Action |
processActionCreate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping)
Overridden to create actions, since our actions have custom constructor parameters. |
protected org.apache.struts.action.ActionForm |
processActionForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping)
Overridden to create forms, since our forms have custom constructor parameters. |
protected void |
processPopulate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping)
Overridden to populate forms, and convert the string values of value object properties into the correct form for their class. |
protected void |
setImplementation(MaskRequestProcessorImplementation implementationParam)
Refer to getImplementation(). |
| Methods inherited from class org.apache.struts.tiles.TilesRequestProcessor |
doForward, getDefinitionsFactory, initDefinitionsMapping, internalModuleRelativeForward, internalModuleRelativeInclude, processForwardConfig, processTilesDefinition |
| Methods inherited from class org.apache.struts.action.RequestProcessor |
destroy, doInclude, getInternal, getServletContext, log, log, process, processActionPerform, processCachedMessages, processContent, processException, processForward, processInclude, processLocale, processMapping, processMultipart, processNoCache, processPath, processPreprocess, processRoles, processValidate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MaskTilesRequestProcessor(com.ivata.mask.MaskFactory maskFactory,
com.ivata.mask.persistence.PersistenceManager persistenceManager)
Initializes the mask factory, the value object locator and the the standard field value convertors.
maskFactory - Refer to
MaskRequestProcessorImplementation#MaskRequestProcessorImpl.persistenceManager - Refer to
MaskRequestProcessorImplementation#MaskRequestProcessorImpl.| Method Detail |
protected org.apache.struts.action.Action createAction(java.lang.String className,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping)
throws java.io.IOException
Override this method to define how to create actions in your environment. This lets you use ivata masks with a standard framework.
The default implementation looks for the action classes it knows about and initializes them directly. This is a simple starting point; in real life it is better to use a standard framework such as picocontainer .
className - full path and name of the action class to be created.request - request for which we are creating an action.response - response we are sending.mapping - Struts mapping.
null if the action
can and should be created using the default Struts
framework.
java.io.IOException - if the action cannot be created.
protected org.apache.struts.action.ActionForm createActionForm(org.apache.struts.config.FormBeanConfig formBeanConfig,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping)
throws com.ivata.mask.util.SystemException
Override this method to define how to create action forms in your environment. This lets you use ivata masks with a standard framework.
The default implementation looks for the form classes it knows about and initializes them directly. This is a simple starting point; in real life it is better to use a standard framework such as picocontainer .
formBeanConfig - Refer to
MaskRequestProcessorImplementation.createActionForm(org.apache.struts.config.FormBeanConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping).request - Refer to
MaskRequestProcessorImplementation.createActionForm(org.apache.struts.config.FormBeanConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping).response - Refer to
MaskRequestProcessorImplementation.createActionForm(org.apache.struts.config.FormBeanConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping).mapping - Refer to
MaskRequestProcessorImplementation.createActionForm(org.apache.struts.config.FormBeanConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping).
MaskRequestProcessorImplementation.createActionForm(org.apache.struts.config.FormBeanConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping).
com.ivata.mask.util.SystemException - Refer to
MaskRequestProcessorImplementation.createActionForm(org.apache.struts.config.FormBeanConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping).protected MaskRequestProcessorImplementation getImplementation()
public void init(org.apache.struts.action.ActionServlet servletParam,
org.apache.struts.config.ModuleConfig moduleConfigParam)
throws javax.servlet.ServletException
RequestProcessor.init(org.apache.struts.action.ActionServlet, org.apache.struts.config.ModuleConfig).
servletParam - Refer to RequestProcessor.init(org.apache.struts.action.ActionServlet, org.apache.struts.config.ModuleConfig).moduleConfigParam - Refer to RequestProcessor.init(org.apache.struts.action.ActionServlet, org.apache.struts.config.ModuleConfig).
javax.servlet.ServletException - Refer to RequestProcessor.init(org.apache.struts.action.ActionServlet, org.apache.struts.config.ModuleConfig).
protected org.apache.struts.action.Action processActionCreate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping)
throws java.io.IOException
Overridden to create actions, since our actions have custom constructor
parameters. Don't try to override this method: override
createAction instead.
request - request for which we are creating an action.response - response we are sending.mapping - Struts mapping.
java.io.IOException - Refer to
RequestProcessor.processActionCreate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping).
RequestProcessor.processActionCreate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping).RequestProcessor.processActionCreate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping)
protected final org.apache.struts.action.ActionForm processActionForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping)
Overridden to create forms, since our forms have custom constructor
parameters. Don't try to override this method: override createActionForm instead.
request - servlet request we are processing.response - servlet response we are creating.mapping - Struts mapping we are populating.
RequestProcessor.processActionForm(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping).RequestProcessor.processActionForm(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping)
protected void processPopulate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping)
throws javax.servlet.ServletException
Overridden to populate forms, and convert the string values of value object properties into the correct form for their class.
request - servlet request we are processing.response - servlet response we are creating.form - form instance we are populating.mapping - Struts mapping we are using.
javax.servlet.ServletException - if an exception is thrown while setting property valuesRequestProcessor.processPopulate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping)protected void setImplementation(MaskRequestProcessorImplementation implementationParam)
getImplementation().
implementationParam - Refer to getImplementation().
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||