|
Anyframe Web | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.Action
org.springframework.web.struts.ActionSupport
anyframe.web.struts.action.AbstractActionSupport
anyframe.web.struts.action.DefaultDispatchActionSupport
public class DefaultDispatchActionSupport
Public Dispatch Action Class which provide token, exception, error logging, pre/post execution features
We changed org.apache.struts.actions.DispatchAction Class into anyframe.web.struts.common.action.DefaultDispatchActionSupport Class in Anyframe.
| Field Summary | |
|---|---|
protected java.lang.Class |
clazz
The Class instance of this DispatchAction class. |
protected static org.apache.struts.util.MessageResources |
messages
The message resources for this package. |
protected java.util.HashMap |
methods
The set of Method objects we have introspected for this class, keyed by method name. |
protected java.lang.Class[] |
types
The set of argument type classes for the reflected method call. |
| Fields inherited from class org.apache.struts.action.Action |
|---|
servlet |
| Constructor Summary | |
|---|---|
DefaultDispatchActionSupport()
|
|
| Method Summary | |
|---|---|
protected org.apache.struts.action.ActionForward |
cancelled(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method which is dispatched to when the request is a cancel button submit. |
protected org.apache.struts.action.ActionForward |
dispatchMethod(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name)
Dispatch to the specified method. |
org.apache.commons.logging.Log |
getLogger()
Anyframe Core Delegation Util Method to get Logger |
protected java.lang.reflect.Method |
getMethod(java.lang.String name)
Introspect the current class to identify a method of the specified name that accepts the same parameter types as the execute
method does. |
protected java.lang.String |
getMethodName(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String parameter)
Returns the method name, given a parameter's value. |
protected java.lang.Object |
getService(java.lang.String name)
Returns with bean name the Bean registered with WebApplicationContext. |
org.apache.struts.action.ActionForward |
process(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it). |
protected org.apache.struts.action.ActionForward |
unspecified(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method which is dispatched to when there is no value for specified request parameter included in the request. |
| Methods inherited from class anyframe.web.struts.action.AbstractActionSupport |
|---|
execute, postProcess, preProcess, processCheckedException, processFinally, processInvalidTokenException, processUnCheckedException |
| Methods inherited from class org.springframework.web.struts.ActionSupport |
|---|
getMessageSourceAccessor, getServletContext, getTempDir, getWebApplicationContext, initWebApplicationContext, onDestroy, onInit, setServlet |
| Methods inherited from class org.apache.struts.action.Action |
|---|
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Class clazz
DispatchAction class.
protected static org.apache.struts.util.MessageResources messages
protected java.util.HashMap methods
protected java.lang.Class[] types
| Constructor Detail |
|---|
public DefaultDispatchActionSupport()
| Method Detail |
|---|
public org.apache.commons.logging.Log getLogger()
throws java.lang.Exception
Anyframe Core Delegation Util Method to get Logger
getLogger in class AbstractActionSupportjava.lang.Exceptionprotected java.lang.Object getService(java.lang.String name)
getService in class AbstractActionSupportname - Bean name registered in ApplicationContext
public org.apache.struts.action.ActionForward process(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
ActionForward instance describing where and how
control should be forwarded, or null if the response has
already been completed.
process in class AbstractActionSupportmapping - The ActionMapping used to select this instanceform - The optional ActionForm bean for this request (if any)request - The HTTP request we are processingresponse - The HTTP response we are creating
null if the response has been completed.
java.lang.Exception - if an exception occurs
protected org.apache.struts.action.ActionForward cancelled(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
DispatchAction should override this method
if they wish to provide default behavior different than returning null.
java.lang.Exception
protected java.lang.String getMethodName(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String parameter)
throws java.lang.Exception
mapping - The ActionMapping used to select this instanceform - The optional ActionForm bean for this request (if any)request - The HTTP request we are processingresponse - The HTTP response we are creatingparameter - The ActionMapping parameter's name
java.lang.Exception
protected org.apache.struts.action.ActionForward dispatchMethod(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name)
throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
DispatchAction should override this method if they wish to
provide default behavior different than throwing a ServletException.
java.lang.Exception
protected java.lang.reflect.Method getMethod(java.lang.String name)
throws java.lang.NoSuchMethodException
execute
method does.
name - Name of the method to be introspected
java.lang.NoSuchMethodException - if no such method can be found
|
Anyframe Web | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||