com.restbusters.data.templating.generation.JsonGenerationTemplateMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qreasp Show documentation
Show all versions of qreasp Show documentation
Automation and Release API and intergration support; supports REST APIs and external systems.
/*
* *
* * Created by RESTBUSTERS on 6/15/21
* * @author Ed Vayn
* * @project qreasp
* * Copyright (c) 2021 . All rights reserved.
* * Last modified 6/15/21
*
*/
package com.restbusters.data.templating.generation;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.restbusters.resource.GlobalResourceManager;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class JsonGenerationTemplateMapper {
private static final ObjectMapper OBJECT_MAPPER = GlobalResourceManager.getInstance().getObjectMapper();
public static Map appendBodyWithFooterAndHeader(String header, String footer, String bodyKey, String body) {
Map bodyMap = new HashMap();
bodyMap.put("bodyKey", bodyKey);
bodyMap.put("body", body);
bodyMap.put("header", header);
bodyMap.put("footer", footer);
return bodyMap;
}
public static List