nl.gx.webmanager.handler.forms.handling
Class ConfirmationHandler

java.lang.Object
  extended by nl.gx.webmanager.handler.forms.foundation.FormHandlerBase
      extended by nl.gx.webmanager.handler.forms.handling.ConfirmationHandler
All Implemented Interfaces:
FormComponent, Handler

public class ConfirmationHandler
extends FormHandlerBase
implements Handler

Stores e-mail confirmation in the session. This handler is used in the webuser registration. A unique key will be generated for this username. The generated confirmation link will be stored in the session key 'emailconfirmationlink'.

Variable Type Mode Default Description
usernameformpartcode Parameter Optional - Formpart that specifies the username.
userUpdateStatement Parameter Required - Statement with which the database specified in the 'connectionname' will be updated to store the generated key with the username.
baseurl Parameter Optional - URL that will be used for the webuser to confirm his registration. The generated key will be added to this URL and the result is stored in the session.
connectionname Parameter Required - Specifies the connection to the database used.
Example usage:


Field Summary
static java.lang.String EMAIL_CONFIRMATION_LINK_KEY
           
 
Fields inherited from class nl.gx.webmanager.handler.forms.foundation.FormHandlerBase
DEFAULT_STATEMENT_TIMEOUT, log, staticlog
 
Constructor Summary
ConfirmationHandler()
           
 
Method Summary
 void doHandle(FormDefinition form, State formState, javax.servlet.http.HttpServletRequest req, 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
 

Field Detail

EMAIL_CONFIRMATION_LINK_KEY

public static final java.lang.String EMAIL_CONFIRMATION_LINK_KEY
See Also:
Constant Field Values
Constructor Detail

ConfirmationHandler

public ConfirmationHandler()
Method Detail

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 req,
                     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 form
req - The http request
res - The http response
Throws:
HandleException - If the form values could not be handled correctly


Copyright © 2007-2010 GX creative online development BV. All Rights Reserved.