summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-common/src
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk/epsdk-app-common/src')
-rw-r--r--ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/PostDroolsController.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/PostDroolsController.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/PostDroolsController.java
index fb0338ea..43d548f9 100644
--- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/PostDroolsController.java
+++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/PostDroolsController.java
@@ -75,7 +75,7 @@ public class PostDroolsController extends RestrictedBaseController {
@RequestMapping(value = { "/getDrools" }, method = RequestMethod.GET)
public void getDrools(HttpServletRequest request, HttpServletResponse response) {
- // Map<String, Object> model = new HashMap<String, Object>();
+
ObjectMapper mapper = new ObjectMapper();
try {
@@ -97,7 +97,6 @@ public class PostDroolsController extends RestrictedBaseController {
PostDroolsBean postDroolsBean = new PostDroolsBean();
String selectedFile = request.getParameter("selectedFile");
postDroolsBean.setDroolsFile(selectedFile);// sample populated
- // postDroolsBean.setSelectedRules("[\"NJ\",\"NY\",\"KY\"]");
postDroolsBean.setClassName(postDroolsService.retrieveClass(selectedFile));
JsonMessage msg = new JsonMessage(mapper.writeValueAsString(postDroolsBean));
@@ -126,7 +125,6 @@ public class PostDroolsController extends RestrictedBaseController {
request.setCharacterEncoding("UTF-8");
PrintWriter out = response.getWriter();
- // String responseString = mapper.writeValueAsString(resultsString);
JSONObject j = new JSONObject("{resultsString: " + resultsString + "}");
out.write(j.toString());