result = this.restoreState(request, target);
if (!result.isValid()) {
return result;
}
// Get resultant object, the stored state
IState state = (IState) result.getValue();
result = this.isTheSameAction(request, target, state);
if (!result.isValid()) {
return result;
}
result = this.allRequiredParametersReceived(request, state, target);
if (!result.isValid()) {
return result;
}
// Hdiv parameter name
String hdivParameter = this.getHdivParameter(request);
// Extract url params from State
BasicUrlData urlData = this.urlProcessor.processUrl(request, "?" + state.getParams());
Map<String, String[]> stateParams = urlData.getUrlParams();
Map<String, String[]> unauthorizedEditableParameters = new HashMap<String, String[]>();
Enumeration<?> parameters = request.getParameterNames();
while (parameters.hasMoreElements()) {
String parameter = (String) parameters.nextElement();
// Validate parameter
result = this.validateParameter(request, state.getParameter(parameter), stateParams.get(parameter),
unauthorizedEditableParameters, hdivParameter, target, parameter);
if (!result.isValid()) {
return result;
}