Displaying differences for changeset |
@@ -65,7 +65,7 @@ |
climateURI = Config.getString("crp.cligen", climateURI); |
if (params.has("aoa_geometry")) { |
- aoa_geometry = getParam("aoa_geometry"); |
+ aoa_geometry = params.getParamJSON("aoa_geometry"); |
} else { |
throw new ServiceException("Service requires an aoa_geometry input."); |
@@ -143,23 +143,4 @@ |
throw new ServiceException("Cannot write to that file: " + filename, ex); |
} |
} |
-//////////////////////////////// |
-// |
-// Private member functions |
-// |
-//////////////////////////////// |
- |
- /** |
- * Get the full JSON parameter record. |
- * |
- * @param name |
- * @return the JSON record. |
- */ |
- private JSONObject getParam(String name) throws ServiceException { |
- JSONObject p = getParamMap().get(name); |
- if (p == null) { |
- throw new ServiceException("Parameter not found: '" + name + "'"); |
- } |
- return p; |
- } |
} |