import com.fasterxml.jackson.databind.JsonMappingException;\r
import com.fasterxml.jackson.databind.ObjectMapper;\r
\r
+import org.openecomp.mso.logger.MsoLogger;\r
+\r
public class DecomposeJsonUtil implements Serializable {\r
- \r
+ private static final MsoLogger LOGGER = MsoLogger.getMsoLogger(MsoLogger.Catalog.BPEL);\r
/**\r
* \r
*/\r
try {\r
serviceDecomposition = om.readValue(jsonString, ServiceDecomposition.class);\r
} catch (JsonParseException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("JsonParseException :",e);\r
} catch (JsonMappingException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("JsonMappingException :",e);\r
} catch (IOException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("IOException :",e);\r
}\r
\r
return serviceDecomposition;\r
try {\r
vnfResource = om.readValue(jsonString, VnfResource.class);\r
} catch (JsonParseException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("JsonParseException :",e);\r
} catch (JsonMappingException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("JsonMappingException :",e);\r
} catch (IOException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("IOException :",e);\r
}\r
return vnfResource;\r
}\r
try {\r
networkResource = om.readValue(jsonString, NetworkResource.class);\r
} catch (JsonParseException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("Exception :",e);\r
} catch (JsonMappingException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("Exception :",e);\r
} catch (IOException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("Exception :",e);\r
}\r
return networkResource;\r
}\r
try {\r
allottedResource = om.readValue(jsonString, AllottedResource.class);\r
} catch (JsonParseException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("Exception :",e);\r
} catch (JsonMappingException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("Exception :",e);\r
} catch (IOException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
+ LOGGER.debug("Exception :",e);\r
}\r
return allottedResource;\r
}\r