protected ValidationErrors validateMandatory() { ValidationErrors errors = new ValidationErrors(); for (RequestParam p : getMandatoryParams()) { if (p.isEmpty()) { errors.append(p.getName(), "Please specify a value, " + p.getName() + " is required"); } } return errors; }
protected void addParam(RequestParam param, boolean isMandatory) { paramMap.put(param.getName(), param); if (isMandatory) { mandatoryParamSet.add(param); } }