}
}
private void validateRequiredParameter(LinkParameter linkParameter, Parameter[] parameters)
throws OpenShiftRequestException {
Parameter parameter = getParameter(linkParameter.getName(), parameters);
if (parameter == null) {
throw new OpenShiftRequestException(
"Requesting {0}: required request parameter \"{1}\" is missing", getHref(),
linkParameter.getName());
}
if (isEmptyString(linkParameter, parameter.getValue())) {
throw new OpenShiftRequestException("Requesting {0}: required request parameter \"{1}\" is empty",
getHref(), linkParameter.getName());
}
// TODO: check valid options (still reported in a very incosistent way)
}