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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
|
static AjaxResult |
execute(ActionDefinition actionDefinition,
java.util.Map params,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
Entry point for all action invocations. |
protected com.opensymphony.webwork.dispatcher.mapper.ActionMapping |
getActionMapping(ActionDefinition actionDefinition,
java.util.Map params)
|
protected AjaxTextResult |
getTextResult(FakeHttpServletResponse response)
|
protected com.opensymphony.xwork.ActionInvocation |
invokeAction(com.opensymphony.webwork.dispatcher.DispatcherUtils du,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext context,
ActionDefinition actionDefinition,
java.util.Map params)
|
protected void |
prepareContinuationAction(javax.servlet.http.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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
throws javax.servlet.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:
javax.servlet.ServletException - thrown if the initialization or invocation of the action fails
doExecute
protected AjaxResult doExecute(ActionDefinition actionDefinition,
java.util.Map params,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
invokeAction
protected com.opensymphony.xwork.ActionInvocation invokeAction(com.opensymphony.webwork.dispatcher.DispatcherUtils du,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext context,
ActionDefinition actionDefinition,
java.util.Map params)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
prepareContinuationAction
protected void prepareContinuationAction(javax.servlet.http.HttpServletRequest request,
java.util.Map extraContext)
getActionMapping
protected com.opensymphony.webwork.dispatcher.mapper.ActionMapping getActionMapping(ActionDefinition actionDefinition,
java.util.Map params)
getTextResult
protected AjaxTextResult getTextResult(FakeHttpServletResponse response)
Copyright © 2007. All Rights Reserved.