org.directwebremoting.webwork
Class DWRAction
java.lang.Object
org.directwebremoting.webwork.DWRAction
public class DWRAction
- extends java.lang.Object
This class represents the entry point to all WebWork action invocations. It identifies the
action to be invoked, prepares the action invocation context and finally wraps the
result.
You can configure an IDWRActionProcessor
through a context-wide initialization parameter
dwrActionProcessor
that whose methods will be invoked around action invocation.
- Author:
- Alexandru Popescu
Method Summary |
protected AjaxResult |
doExecute(ActionDefinition actionDefinition,
java.util.Map params,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
|
static AjaxResult |
execute(ActionDefinition actionDefinition,
java.util.Map params,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Entry point for all action invocations. |
protected ActionMapping |
getActionMapping(ActionDefinition actionDefinition,
java.util.Map params)
|
protected AjaxTextResult |
getTextResult(FakeHttpServletResponse response)
|
protected ActionInvocation |
invokeAction(DispatcherUtils du,
HttpServletRequest request,
HttpServletResponse response,
ServletContext context,
ActionDefinition actionDefinition,
java.util.Map params)
|
protected void |
prepareContinuationAction(HttpServletRequest request,
java.util.Map extraContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
execute
public static AjaxResult execute(ActionDefinition actionDefinition,
java.util.Map params,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
throws ServletException
- Entry point for all action invocations.
- Parameters:
actionDefinition
- the identification information for the actionparams
- action invocation parametersrequest
- original requestresponse
- original responseservletContext
- current ServletContext
- Returns:
- an
AjaxResult
wrapping invocation result
- Throws:
ServletException
- thrown if the initialization or invocation of the action fails
doExecute
protected AjaxResult doExecute(ActionDefinition actionDefinition,
java.util.Map params,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
throws ServletException
- Throws:
ServletException
invokeAction
protected ActionInvocation invokeAction(DispatcherUtils du,
HttpServletRequest request,
HttpServletResponse response,
ServletContext context,
ActionDefinition actionDefinition,
java.util.Map params)
throws ServletException
- Throws:
ServletException
prepareContinuationAction
protected void prepareContinuationAction(HttpServletRequest request,
java.util.Map extraContext)
getActionMapping
protected ActionMapping getActionMapping(ActionDefinition actionDefinition,
java.util.Map params)
getTextResult
protected AjaxTextResult getTextResult(FakeHttpServletResponse response)