org.araneaframework.core
Class StandardActionListener
java.lang.Object
org.araneaframework.core.StandardActionListener
- All Implemented Interfaces:
- ActionListener, Serializable
- Direct Known Subclasses:
- FormElementValidationActionListener
- public abstract class StandardActionListener
- extends Object
- implements ActionListener
A base solution for action listeners. All action listeners should implement
processAction(Object, String, InputData, OutputData) to provide
their custom solution.
- Since:
- 1.0.4
- Author:
- Alar Kvell (alar@araneaframework.org)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardActionListener
public StandardActionListener()
processAction
public final void processAction(Object actionId,
InputData input,
OutputData output)
throws Exception
- This method is marked final. Subclasses should implement
processAction(Object, String, InputData, OutputData).
- Specified by:
processAction in interface ActionListener
- Parameters:
actionId - The ID of the incoming action.input - The request data.output - The response data.
- Throws:
Exception - Any runtime exception that might occur.
processAction
public abstract void processAction(Object actionId,
String actionParam,
InputData input,
OutputData output)
throws Exception
- Action processing method that includes an action parameter. Implementation
should be able to handle different
actionIds.
- Parameters:
actionId - The ID of the incoming action.actionParam - The parameter for the action (from request under name
ApplicationService.ACTION_PARAMETER_KEY)input - The request data.output - The response data.
- Throws:
Exception - Any runtime exception that might occur.