X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-BE-common%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fportalapp%2Fportal%2Fscheduler%2FSchedulerUtil.java;h=675cfe14c2aa209defe611e5f6687c0e40f53971;hb=dd2c6fd1355f93857dc7b5ab23776a1d6543f006;hp=c1ca873555182921a2bd0411e7c95a5dad940de0;hpb=2a462c99939b19f972813b64c7a4d6e33b9aaa5a;p=portal.git diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/scheduler/SchedulerUtil.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/scheduler/SchedulerUtil.java index c1ca8735..675cfe14 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/scheduler/SchedulerUtil.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/scheduler/SchedulerUtil.java @@ -57,17 +57,17 @@ public class SchedulerUtil { public static GetTimeSlotsWrapper getTimeSlotsWrapResponse (GetTimeSlotsRestObject rs) { - String resp_str = ""; + String respStr = ""; int status = 0; if ( rs != null ) { - resp_str = rs.get(); + respStr = rs.get(); status = rs.getStatusCode(); } GetTimeSlotsWrapper w = new GetTimeSlotsWrapper(); - w.setEntity(resp_str); + w.setEntity(respStr); w.setStatus (status); return (w); @@ -75,19 +75,19 @@ public class SchedulerUtil { public static PostSubmitVnfChangeTimeSlotsWrapper postSubmitNewVnfWrapResponse (PostSubmitVnfChangeRestObject rs) { - String resp_str = ""; + String respStr = ""; int status = 0; String uuid = ""; if ( rs != null ) { - resp_str = rs.get(); + respStr = rs.get(); status = rs.getStatusCode(); uuid = rs.getUUID(); } PostSubmitVnfChangeTimeSlotsWrapper w = new PostSubmitVnfChangeTimeSlotsWrapper(); - w.setEntity(resp_str); + w.setEntity(respStr); w.setStatus (status); w.setUuid(uuid); @@ -96,19 +96,19 @@ public class SchedulerUtil { public static PostCreateNewVnfWrapper postCreateNewVnfWrapResponse (PostCreateNewVnfRestObject rs) { - String resp_str = ""; + String respStr = ""; int status = 0; String uuid = ""; if ( rs != null ) { - resp_str = rs.get(); + respStr = rs.get(); status = rs.getStatusCode(); uuid = rs.getUUID(); } PostCreateNewVnfWrapper w = new PostCreateNewVnfWrapper(); - w.setEntity(resp_str); + w.setEntity(respStr); w.setStatus (status); w.setUuid(uuid); @@ -121,14 +121,14 @@ public class SchedulerUtil { ObjectMapper mapper = new ObjectMapper(); String r_json_str = ""; if ( t != null ) { - try { - r_json_str = mapper.writeValueAsString(t); - } - catch ( com.fasterxml.jackson.core.JsonProcessingException j ) { - logger.debug(EELFLoggerDelegate.debugLogger, - DateUtil.getDateFormat().format(new Date()) + "<== " + methodName + " Unable " + "to " - + "parse object as json"); - } + try { + r_json_str = mapper.writeValueAsString(t); + } catch (com.fasterxml.jackson.core.JsonProcessingException j) { + logger.debug( + EELFLoggerDelegate.debugLogger, DateUtil.getDateFormat().format(new Date()) + + "<== " + methodName + " Unable " + "to " + "parse object as json", + j); + } } return (r_json_str); }