Package decisionrules.utils
Class Utils
java.lang.Object
decisionrules.utils.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.http.converter.json.MappingJackson2HttpMessageConverterstatic org.springframework.http.HttpHeaderscreateHeaders(String key) static StringdoCall(org.springframework.web.client.RestTemplate restTemplate, URI url, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpMethod method) static StringdoCall(org.springframework.web.client.RestTemplate restTemplate, URI url, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpMethod method, Object body) static StringgetBaseURL(String host) static DecisionRulesErrorException
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getBaseURL
-
createHeaders
-
createConverter
public static org.springframework.http.converter.json.MappingJackson2HttpMessageConverter createConverter() -
handleError
-
doCall
-
doCall
-