|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataValidator
Interface to validate the data sent by the user.
| Method Summary | |
|---|---|
void |
setState(IState state)
|
IValidationResult |
validate(java.lang.String value,
java.lang.String target,
java.lang.String parameter)
Checks if the value data sent by the user to the server in the
parameter parameter is correct or not. |
| Method Detail |
|---|
IValidationResult validate(java.lang.String value,
java.lang.String target,
java.lang.String parameter)
Checks if the value data sent by the user to the server in the
parameter parameter is correct or not. The received value is
checked with the one stored in the state to decide if it is correct.
In the encoded and hash strategies, the state is obtained from the user request. However, in the memory strategy the state is obtained from the user session, using the state identifier receiced within the request.
value - value sent by the clienttarget - target action nameparameter - parameter name
parameter and the value data.void setState(IState state)
state - The validation process state to set.
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||