com.raritantechnologies.struts
Class DynamicActionHandler
java.lang.Object
com.raritantechnologies.struts.DynamicActionHandler
- All Implemented Interfaces:
- IActionHandler, IConfigurable
- public class DynamicActionHandler
- extends java.lang.Object
- implements IActionHandler
Switchable ActionHandler based on input parameters.
XML Configuration Template:
<ActionHandler class="com.raritantechnologies.struts.DynamicActionHandler" >
<!-- One or more UseHandler Elements -->
<UseHandler>
<!-- Compares the parameters in the HttpServletRequest -->
<MapComparator>
<!-- see configuration for MapComparator -->
</MapComparator>
<ActionHandler class="[ class of com.raritantechnologies.struts.IActionHandler ]" >
</ActionHandler>
</UseHandler>
</ActionHandler>
Developed by
Raritan Technologies .
- Author:
- Ted Sullivan
|
Method Summary |
ActionForward |
handleAction(ActionMapping mapping,
ActionForm form,
DynamicHttpServletRequest request,
HttpServletResponse response)
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicActionHandler
public DynamicActionHandler()
handleAction
public ActionForward handleAction(ActionMapping mapping,
ActionForm form,
DynamicHttpServletRequest request,
HttpServletResponse response)
throws java.lang.Exception
- Specified by:
handleAction in interface IActionHandler
- Throws:
java.lang.Exception
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IConfigurable