| com.ivata.mask.web.struts.MaskRequestProcessor
MaskRequestProcessor | public class MaskRequestProcessor extends RequestProcessor (Code) | |
Extend from this class if you _don't_ want to use Struts Tiles
.
since: ivata masks 0.3 (2004-05-11) author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.16 $ |
Method Summary | |
protected Action | createAction(String className, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
Override this method to define how to create actions in your environment.
This lets you use ivata masks with a standard framework.
The default implementation looks for the action classes it knows about
and initializes them directly. | protected ActionForm | createActionForm(FormBeanConfig formBeanConfig, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
Override this method to define how to create action forms in your
environment. | protected MaskRequestProcessorImplementation | getImplementation() Get the actual mask request processor which does all the hard work. | public void | init(ActionServlet servletParam, ModuleConfig moduleConfigParam) | protected Action | processActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
Overridden to create actions, since our actions have custom constructor
parameters. | final protected ActionForm | processActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
Overridden to create forms, since our forms have custom constructor
parameters. | protected void | processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping)
Overridden to populate forms, and convert the string values of value
object properties into the correct form for their class. | protected void | setImplementation(MaskRequestProcessorImplementation implementationParam) |
MaskRequestProcessor | public MaskRequestProcessor(MaskFactory maskFactory, PersistenceManager persistenceManager)(Code) | |
Initializes the mask factory, the value object locator and the the
standard field value converters.
Parameters: maskFactory - needed to access the masks and groups of masks. Parameters: persistenceManager - used to locate the value objects by their shared base class. |
createAction | protected Action createAction(String className, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException(Code) | |
Override this method to define how to create actions in your environment.
This lets you use ivata masks with a standard framework.
The default implementation looks for the action classes it knows about
and initializes them directly. This is a simple starting point; in real
life it is better to use a standard framework such as picocontainer .
Parameters: className - full path and name of the action class to be created. Parameters: request - request for which we are creating an action. Parameters: response - response we are sending. Parameters: mapping - Struts mapping. valid action for the path, or null if the actioncan and should be created using the default Struts framework. throws: IOException - if the action cannot be created. |
createActionForm | protected ActionForm createActionForm(FormBeanConfig formBeanConfig, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws SystemException(Code) | |
Override this method to define how to create action forms in your
environment. This lets you use ivata masks with a standard framework.
The default implementation looks for the form classes it knows about and
initializes them directly. This is a simple starting point; in real life
it is better to use a standard framework such as picocontainer .
Parameters: formBeanConfig - instance of FormBeanConfig defining the form tobe created. Parameters: request - request for which we are creating an action. Parameters: response - response we are sending. Parameters: mapping - Struts mapping. valid action for the path, or null if the form canand should be created using the default Struts framework. throws: SystemException - if the form cannot be created for any reason. |
getImplementation | protected MaskRequestProcessorImplementation getImplementation()(Code) | | Get the actual mask request processor which does all the hard work. The
functionality for this class is split off into this processor, so we
can extend both the Tiles and standard versions of
Struts processor classes with the same functional extensions.
mask processor implementation. |
processActionForm | final protected ActionForm processActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)(Code) | |
Overridden to create forms, since our forms have custom constructor
parameters. Don't try to override this method: override
MaskRequestProcessor.createActionForm createActionForm instead.
Parameters: request - Parameters: response - Parameters: mapping - |
processPopulate | protected void processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws ServletException(Code) | |
Overridden to populate forms, and convert the string values of value
object properties into the correct form for their class.
Parameters: request - Parameters: response - Parameters: form - Parameters: mapping - exception: ServletException - |
|
|