Class Utils

java.lang.Object
decisionrules.utils.Utils

public class Utils extends Object
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • getBaseURL

      public static String getBaseURL(String host)
    • createHeaders

      public static org.springframework.http.HttpHeaders createHeaders(String key)
    • createConverter

      public static org.springframework.http.converter.json.MappingJackson2HttpMessageConverter createConverter()
    • handleError

      public static DecisionRulesErrorException handleError(Exception e)
    • doCall

      public static String doCall(org.springframework.web.client.RestTemplate restTemplate, URI url, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpMethod method)
    • doCall

      public static String doCall(org.springframework.web.client.RestTemplate restTemplate, URI url, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpMethod method, Object body)