* <p><i><u>note 2:</u> If several values have been submitted for the same UWS standard parameter, just the last occurrence is taken into account.</i></p>
// If the value is NULL, throw an error (no parameter can be removed after job creation):
if(entry.getValue()==null)
thrownewUWSException(UWSException.FORBIDDEN,"Removing a parameter (here: \""+entry.getKey()+"\") from a job is forbidden!");
thrownewUWSException(UWSException.BAD_REQUEST,"Removing a parameter (here: \""+entry.getKey()+"\") from a job is forbidden!");
// Else update the parameter value:
else{
// If the parameter to replace is an uploaded file, it must be physically removed before replacement:
@@ -452,7 +452,7 @@ public class UWSParameters implements Iterable<Entry<String, Object>> {
}
}else
// No parameter can be added after job creation:
thrownewUWSException(UWSException.FORBIDDEN,"Adding a parameter (here: \""+entry.getKey()+"\") to an existing job is forbidden by the UWS protocol!");
thrownewUWSException(UWSException.BAD_REQUEST,"Adding a parameter (here: \""+entry.getKey()+"\") to an existing job is forbidden by the UWS protocol!");