|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action org.apache.struts.actions.BaseAction org.apache.struts.actions.DispatchAction org.apache.struts.actions.LookupDispatchAction com.cc.framework.adapter.struts.FWLookupDispatchAction
CC-Framework base class for LookupDispatchAction
Field Summary | |
private static org.apache.commons.logging.Log |
fwlog
Private Logger instance |
protected org.apache.commons.logging.Log |
log
Commons Logging instance. |
Fields inherited from class org.apache.struts.actions.LookupDispatchAction |
keyMethodMap, localeMap |
Fields inherited from class org.apache.struts.actions.DispatchAction |
clazz, methods, types |
Fields inherited from class org.apache.struts.actions.BaseAction |
messages |
Fields inherited from class org.apache.struts.action.Action |
servlet |
Constructor Summary | |
FWLookupDispatchAction()
Constructor |
Method Summary | |
void |
applyControlStates(ActionContext ctx)
Applies the serialized control state from the HTTPRequest to the corresponding control instances. |
void |
cleanup(ActionContext ctx)
This method do some cleanup after the action finished. |
ActionContext |
createActionContext(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is called to create the ActionContext wrapper. |
void |
doPostExecute(ActionContext ctx)
A template method. |
boolean |
doPreExecute(ActionContext ctx)
A template method. |
void |
doRenderAjaxResponse(ActionContext ctx,
javax.servlet.jsp.PageContext pageContext)
Renders the AJAX XML response |
void |
doSetMenuContext(ActionContext ctx,
MenuContext menuCtx)
Sets the menu context. |
void |
execute(ActionContext ctx)
This method is called instead the struts execute. |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method gets called when no FWRequestProcessor is used! |
java.lang.reflect.Method |
getActionHandler(ControlActionContext ctx,
java.lang.Object[] params)
Searches the action class for a handler method. |
Control |
getControlByName(ActionContext ctx,
java.lang.String name)
The framework has a default pattern where to search a control instance. |
DialogContext |
getDialogContext(ActionContext ctx,
boolean create)
Returns or creates a dialog context |
ActionContext |
handleControlAction(ActionContext ctx,
ControlMethodInvocation cmi)
Handles an action which comes from a control on the form an delegates the request to the control. |
void |
handleControlAction(ControlActionContext ctx,
java.lang.Object[] params)
Handles an action which comes from a control on the form. |
ActionContext |
handleFormAction(ActionContext ctx)
Checks if the request comes from a form button (save, cancel, ...) and delegates the request to the corresponding handler for the button which must be implemented in the (action) subclass. |
void |
setControlValue(ActionContext ctx,
ControlValuePath path,
java.lang.String[] values)
This method is called to set a control element value |
void |
setControlValuesFromRequest(ActionContext ctx)
This method is called to updates any control element data from request values. |
Methods inherited from class org.apache.struts.actions.LookupDispatchAction |
getKeyMethodMap, getLookupMapName, getMethodName |
Methods inherited from class org.apache.struts.actions.DispatchAction |
cancelled, dispatchMethod, getMethod, getParameter, unspecified |
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, setServlet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cc.framework.adapter.struts.FrameworkAction |
doExecute |
Field Detail |
protected org.apache.commons.logging.Log log
private static org.apache.commons.logging.Log fwlog
Constructor Detail |
public FWLookupDispatchAction()
Method Detail |
public void cleanup(ActionContext ctx)
FrameworkAction
cleanup
in interface FrameworkAction
ctx
- ActionContextFrameworkAction.cleanup(com.cc.framework.adapter.struts.ActionContext)
public Control getControlByName(ActionContext ctx, java.lang.String name) throws java.lang.Exception
FrameworkAction
getControlByName
in interface FrameworkAction
ctx
- The ActionContextname
- The name of the bean
java.lang.Exception
- If an exception occurredFrameworkAction.getControlByName(com.cc.framework.adapter.struts.ActionContext, java.lang.String)
public void applyControlStates(ActionContext ctx) throws java.lang.Exception
FrameworkAction
applyControlStates
in interface FrameworkAction
ctx
- ActionContext
java.lang.Exception
- if an exception occursFrameworkAction.applyControlStates(com.cc.framework.adapter.struts.ActionContext)
public ActionContext handleControlAction(ActionContext ctx, ControlMethodInvocation cmi) throws java.lang.Exception
FrameworkAction
handleControlAction
in interface FrameworkAction
ctx
- ActionContextcmi
- ControlMethodInvocation
java.lang.Exception
- if an exception occursFrameworkAction.handleControlAction(com.cc.framework.adapter.struts.ActionContext, com.cc.framework.ui.control.ControlMethodInvocation)
public void handleControlAction(ControlActionContext ctx, java.lang.Object[] params) throws java.lang.Exception
FrameworkAction
handleControlAction
in interface FrameworkAction
ctx
- ControlRequestContextparams
- Parameters
java.lang.Exception
- if an exception occursFrameworkAction.handleControlAction(com.cc.framework.ui.control.ControlActionContext, java.lang.Object[])
public java.lang.reflect.Method getActionHandler(ControlActionContext ctx, java.lang.Object[] params)
FrameworkAction
getActionHandler
in interface FrameworkAction
ctx
- the action contextparams
- actual parameters
null
when no such method
is definedFrameworkAction.getActionHandler(com.cc.framework.ui.control.ControlActionContext, java.lang.Object[])
public void setControlValue(ActionContext ctx, ControlValuePath path, java.lang.String[] values) throws java.lang.Exception
FrameworkAction
setControlValue
in interface FrameworkAction
ctx
- The ActionContextpath
- The Pathname of the valuevalues
- The value itself
java.lang.Exception
- is thrown when a value could not be setFrameworkAction.setControlValue(com.cc.framework.adapter.struts.ActionContext, com.cc.framework.ui.control.ControlValuePath, java.lang.String[])
public void setControlValuesFromRequest(ActionContext ctx) throws java.lang.Exception
FrameworkAction
ControlValuePath
setControlValuesFromRequest
in interface FrameworkAction
ctx
- The ActionContext
java.lang.Exception
- is thrown when a value could not be setFrameworkAction.setControlValuesFromRequest(com.cc.framework.adapter.struts.ActionContext)
public ActionContext handleFormAction(ActionContext ctx) throws java.lang.Exception
FrameworkAction
handleFormAction
in interface FrameworkAction
ctx
- The ActionContext
java.lang.Exception
- If an exception occurredFrameworkAction.handleFormAction(com.cc.framework.adapter.struts.ActionContext)
public DialogContext getDialogContext(ActionContext ctx, boolean create)
getDialogContext
in interface FrameworkAction
ctx
- The ActionContextcreate
- Indicates if an existing context should be returned (false); otherwise a new context is started (true)
public boolean doPreExecute(ActionContext ctx) throws java.lang.Exception
FrameworkAction
doPreExecute
in interface FrameworkAction
ctx
- The ActionContext
java.lang.Exception
- If an exception occurredFrameworkAction.doPreExecute(com.cc.framework.adapter.struts.ActionContext)
public void doPostExecute(ActionContext ctx) throws java.lang.Exception
FrameworkAction
doPostExecute
in interface FrameworkAction
ctx
- The ActionContext
java.lang.Exception
- If an exception occurredFrameworkAction.doPostExecute(com.cc.framework.adapter.struts.ActionContext)
public void doSetMenuContext(ActionContext ctx, MenuContext menuCtx) throws java.lang.Exception
FrameworkAction
doSetMenuContext
in interface FrameworkAction
ctx
- The ActionContextmenuCtx
- The MenuContext
java.lang.Exception
- If an exception occurredFrameworkAction.doSetMenuContext(com.cc.framework.adapter.struts.ActionContext, com.cc.framework.ui.control.MenuContext)
public ActionContext createActionContext(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
FrameworkAction
createActionContext
in interface FrameworkAction
mapping
- Struts Action Mappingform
- Struts Action Formrequest
- HTTPServletRequestresponse
- HTTPServletResponse
FrameworkAction.createActionContext(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public void execute(ActionContext ctx) throws java.lang.Exception
FrameworkAction
execute
in interface FrameworkAction
ctx
- ActionContext
java.lang.Exception
- if an exception occursFrameworkAction.execute(com.cc.framework.adapter.struts.ActionContext)
public org.apache.struts.action.ActionForward execute(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
java.lang.Exception
Action.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public void doRenderAjaxResponse(ActionContext ctx, javax.servlet.jsp.PageContext pageContext) throws java.lang.Exception
FrameworkAction
doRenderAjaxResponse
in interface FrameworkAction
ctx
- ActionContextpageContext
- PageContext
java.lang.Exception
- Indicates an error during renderingFrameworkAction.doRenderAjaxResponse(com.cc.framework.adapter.struts.ActionContext, javax.servlet.jsp.PageContext)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |