HDIV API 2.0.4

org.hdiv.filter
Class ValidatorHelperRequest

java.lang.Object
  extended by org.hdiv.filter.AbstractValidatorHelper
      extended by org.hdiv.filter.ValidatorHelperRequest
All Implemented Interfaces:
IValidationHelper, org.springframework.beans.factory.BeanFactoryAware

public class ValidatorHelperRequest
extends AbstractValidatorHelper

It validates client requests by comsuming an object of type IState and validating all the entry data, besides replacing relative values by its real values.

Since:
HDIV 2.0
Author:
Roberto Velasco, Gorka Vicente

Constructor Summary
ValidatorHelperRequest()
           
 
Method Summary
 void endPage()
          Handle the storing of HDIV's state, which is done after action invocation.
 void init(javax.servlet.http.HttpServletRequest request)
          Initialization of the objects needed for the validation process.
 void startPage()
          It is called in the pre-processing stage of each user request.
 
Methods inherited from class org.hdiv.filter.AbstractValidatorHelper
getBeanFactory, getDataValidator, getHdivConfig, getLogger, getRequest, getRequestWrapper, getStateUtil, getTarget, initTesting, isTheSameAction, setBeanFactory, setDataValidator, setHdivConfig, setLogger, setRequest, setRequestWrapper, setStateUtil, setTarget, setTargetWithoutContextPath, validate, validateEditableParameter, validateHDIVSuffix, validateRequestCookies, validateStartPageParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorHelperRequest

public ValidatorHelperRequest()
Method Detail

init

public void init(javax.servlet.http.HttpServletRequest request)
Initialization of the objects needed for the validation process.

Specified by:
init in interface IValidationHelper
Overrides:
init in class AbstractValidatorHelper
Parameters:
request - HTTP servlet request
Throws:
HDIVException - if there is an initialization error.

startPage

public void startPage()
It is called in the pre-processing stage of each user request.

Specified by:
startPage in interface IValidationHelper
Specified by:
startPage in class AbstractValidatorHelper

endPage

public void endPage()
Handle the storing of HDIV's state, which is done after action invocation.

Specified by:
endPage in interface IValidationHelper
Specified by:
endPage in class AbstractValidatorHelper
Parameters:
request - http request
Throws:
java.lang.Exception - if there is an error in storing process.

HDIV 2.0.4

Copyright © 2008 hdiv.org. All Rights Reserved.