|
||||||||||
| 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
org.figure8.join.control.DelegatingSpringRequestProcessor
public class DelegatingSpringRequestProcessor
This is an extension of Struts RequestProcessor that delegates
the action creation to Spring if a context is available ... Otherwise the default
behaviour implemented into Struts is used (ie. instanciation of action class)
| Field Summary |
|---|
| Fields inherited from class org.apache.struts.tiles.TilesRequestProcessor |
|---|
definitionsFactory |
| Fields inherited from class org.apache.struts.action.RequestProcessor |
|---|
actions, INCLUDE_PATH_INFO, INCLUDE_SERVLET_PATH, moduleConfig, servlet |
| Constructor Summary | |
|---|---|
DelegatingSpringRequestProcessor()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
determineActionBeanName(org.apache.struts.action.ActionMapping mapping)
Determine the name of the Action bean, to be looked up in the WebApplicationContext. |
protected org.apache.struts.action.Action |
getDelegateAction(org.apache.struts.action.ActionMapping mapping)
Return the delegate Action for the given mapping. |
protected org.apache.struts.action.Action |
processActionCreate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping)
Override the base class method to return the delegate action. |
| Methods inherited from class org.apache.struts.tiles.TilesRequestProcessor |
|---|
doForward, getDefinitionsFactory, init, initDefinitionsMapping, internalModuleRelativeForward, internalModuleRelativeInclude, processForwardConfig, processTilesDefinition |
| Methods inherited from class org.apache.struts.action.RequestProcessor |
|---|
destroy, doInclude, getInternal, getServletContext, log, log, process, processActionForm, processActionPerform, processCachedMessages, processContent, processException, processForward, processInclude, processLocale, processMapping, processMultipart, processNoCache, processPath, processPopulate, processPreprocess, processRoles, processValidate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingSpringRequestProcessor()
| Method Detail |
|---|
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
processActionCreate in class org.apache.struts.action.RequestProcessorrequest - The servlet container request wrapperresponse - The servlet container response wrappermapping - The mappings available for this action
java.io.IOException
protected org.apache.struts.action.Action getDelegateAction(org.apache.struts.action.ActionMapping mapping)
throws InvalidParameterException
The default implementation determines a bean name from the given ActionMapping and looks up the corresponding bean in the WebApplicationContext.
mapping - the Struts ActionMapping
InvalidParameterExceptiondetermineActionBeanName(org.apache.struts.action.ActionMapping)protected java.lang.String determineActionBeanName(org.apache.struts.action.ActionMapping mapping)
The default implementation takes the mapping path and prepends the module prefix, if any.
mapping - the Struts ActionMapping
DelegatingActionUtils.determineActionBeanName(org.apache.struts.action.ActionMapping),
ActionConfig.getPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||