Package org.apache.struts2.factory
Class StrutsActionProxy
java.lang.Object
org.apache.struts2.DefaultActionProxy
org.apache.struts2.factory.StrutsActionProxy
- All Implemented Interfaces:
Serializable
,ActionProxy
- See Also:
-
Field Summary
Fields inherited from class org.apache.struts2.DefaultActionProxy
actionEventListener, actionName, cleanupContext, config, configuration, executeResult, invocation, localizedTextProvider, method, namespace, objectFactory, unknownHandlerManager
-
Constructor Summary
ConstructorsConstructorDescriptionStrutsActionProxy
(ActionInvocation inv, String namespace, String actionName, String methodName, boolean executeResult, boolean cleanupContext) -
Method Summary
Methods inherited from class org.apache.struts2.DefaultActionProxy
getAction, getActionName, getConfig, getExecuteResult, getInvocation, getMethod, getNamespace, isMethodSpecified, prepareNotAllowedErrorMessage, setActionEventListener, setConfiguration, setExecuteResult, setLocalizedTextProvider, setObjectFactory, setUnknownHandler
-
Constructor Details
-
StrutsActionProxy
public StrutsActionProxy(ActionInvocation inv, String namespace, String actionName, String methodName, boolean executeResult, boolean cleanupContext)
-
-
Method Details
-
execute
Description copied from interface:ActionProxy
Execute this ActionProxy. This will set the ActionContext from the ActionInvocation into the ActionContext ThreadLocal before invoking the ActionInvocation, then set the old ActionContext back into the ThreadLocal.- Specified by:
execute
in interfaceActionProxy
- Overrides:
execute
in classDefaultActionProxy
- Returns:
- the result code returned from executing the ActionInvocation
- Throws:
Exception
- can be thrown.- See Also:
-
prepare
protected void prepare()- Overrides:
prepare
in classDefaultActionProxy
-
getErrorMessage
- Overrides:
getErrorMessage
in classDefaultActionProxy
-