@ResponseBody
@RequestMapping(value = {"/uui-lcm/service-templates/{uuid}"}, method = RequestMethod.GET , produces = "application/json")
public ServiceTemplateInput getServiceTemplateInput(@PathVariable("uuid") String uuid, @RequestParam("toscaModelPath") String toscaModelPath){
+ logger.info("returned template content :"+serviceTemplateService.fetchServiceTemplateInput(uuid, toscaModelPath));
return serviceTemplateService.fetchServiceTemplateInput(uuid, toscaModelPath);
}
private ServiceTemplateInput fetchServiceTemplate(String uuid, String toscaModelPath, boolean isVF) {
String toPath = String.format("/home/uui/%s.csar", uuid);
-// String toPath = String.format("D:\\volte/%s.csar", uuid);
try {
downloadFile(toscaModelPath, toPath);
return extractTemplate(toPath, isVF);
public ServiceTemplateInput extractTemplate(String toPath, boolean isVF) throws JToscaException, IOException {
ToscaTemplate tosca = translateToToscaTemplate(toPath);
+ logger.info("csar analysis result :" + tosca);
ServiceTemplateInput serviceTemplateInput = newServiceTemplateInput(tosca);
Map<String, Input> inputsMap = getInputsMap(tosca);
for (NodeTemplate nodeTemplate : tosca.getNodeTemplates()) {