nl.gx.webmanager.handler.forms.handling
Class FlowLoggingHandler
java.lang.Object
nl.gx.webmanager.handler.forms.foundation.FormHandlerBase
nl.gx.webmanager.handler.forms.handling.FlowLoggingHandler
- All Implemented Interfaces:
- FormComponent, Handler
public class FlowLoggingHandler
- extends FormHandlerBase
- implements Handler
Stores flow in the database. The database must match the table structure defined in
sqlscripts/flowlogging*.sql. Three tables will be created: wmFlowLogging,
wmFlowLoggingFormElement, and wmFlowLoggingFormpart. If on Oracle, two sequences
wmFlowLoggingId and wmFlowLoggingFormElementId will be created, because these are
being used to fill the id fields.
| Variable |
Type |
Mode |
Default |
Description |
| connectionname |
Parameter |
Required |
- |
Name of the database connection to use to log the flow to. |
Example usage:
- Keeping track of all submitted registration forms.
|
Method Summary |
void |
doHandle(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse res)
Processes the form. |
void |
init(FormComponentConfig config)
Passes the initialization parameters to the component. |
| Methods inherited from class nl.gx.webmanager.handler.forms.foundation.FormHandlerBase |
close, close, close, executeInsertWithIdentityMSSQLMYSQL, executeInsertWithIdentityOracle, executeIntegerQuery, executeIntegerQuery, executeIntegersQuery, executeIntegersQuery, executeQuery, executeStringQuery, executeUpdate, fillValues, getDataSource, setArguments, setArguments |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlowLoggingHandler
public FlowLoggingHandler()
init
public void init(FormComponentConfig config)
throws InitializationException
- Description copied from interface:
FormComponent
- Passes the initialization parameters to the component.
- Specified by:
init in interface FormComponent
- Parameters:
config - The FormComponentConfig object that contains
configutation information for this component.
- Throws:
InitializationException - If initialization failed
doHandle
public void doHandle(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse res)
throws HandleException
- Description copied from interface:
Handler
- Processes the form.
- Specified by:
doHandle in interface Handler
- Parameters:
form - The definition of the form for which the submitted values
should be handled.formState - The session values for the formrequest - The http requestres - The http response
- Throws:
HandleException - If the form values could not be handled correctly
Copyright © 2007-2011 GX Software BV. All Rights Reserved.