Expresso 5-6

com.jcorporate.expresso.services.validation
Interface ValidationHandler

All Known Implementing Classes:
ApproveRegistrationValidator, ChangePasswordValidator, LoginEmailValidator

public interface ValidationHandler

Applications that need to use the validation framework must implement this interface. This interface could either be implemented as a standalone class, or a controller could implement this interface directly as well. Creation date: (9/23/2001 9:32:19 PM) Author: Shash Chatterjee


Method Summary
 void notify(Hashtable params, String URL)
          This method is used to allow the application-specific handler to notify the "validator(s)" of an action they need to take.
 ControllerResponse validated(Hashtable params, ControllerRequest request, ControllerResponse response, Controller ctlr)
          This method is used to complete the application-specific action after the validation is successful.
 

Method Detail

notify

public void notify(Hashtable params,
                   String URL)
            throws AuthValidationException
This method is used to allow the application-specific handler to notify the "validator(s)" of an action they need to take. This method is called by ValidationJob when a new validation request is submitted. Creation date: (9/23/2001 2:24:30 PM) Author: Shash Chatterjee

Parameters:
params - All the application-specific parameters from the validation request
URL - The link that the user will click on to validate the request
Throws:
AuthValidationException
See Also:
ValidationJob

validated

public ControllerResponse validated(Hashtable params,
                                    ControllerRequest request,
                                    ControllerResponse response,
                                    Controller ctlr)
                             throws ControllerException,
                                    NonHandleableException
This method is used to complete the application-specific action after the validation is successful. This method is called by ValidationController after a validation code matches that stored in the validation entry. Creation date: (9/23/2001 2:24:30 PM) Author: Shash Chatterjee

Parameters:
params - All the application-specific parameters from the validation request
request - the ControllerRequest object
response - The controller response from the runValidationState of ValidationController
ctlr - The ValidationController instance
Returns:
ControllerResponse object
Throws:
ControllerException - upon error
NonHandleableException - upon fatal error
See Also:
ValidationController

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.