Class MyRestClient

java.lang.Object
didproviderutil.MyRestClient

public class MyRestClient extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> T
    getResponse(String url, org.springframework.http.HttpMethod method, Object requestDTO, com.fasterxml.jackson.databind.ObjectMapper mapper, org.springframework.web.client.RestTemplate restTemplate, org.springframework.http.HttpHeaders headers, Class<T> valueType)
     
    static <T> T
    getResponse(String url, org.springframework.http.HttpMethod method, Object requestDTO, com.fasterxml.jackson.databind.ObjectMapper mapper, org.springframework.web.client.RestTemplate restTemplate, org.springframework.http.HttpHeaders headers, org.springframework.core.ParameterizedTypeReference<T> responseType)
     
    static void
    main(String[] args)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getResponse

      public static <T> T getResponse(String url, org.springframework.http.HttpMethod method, Object requestDTO, com.fasterxml.jackson.databind.ObjectMapper mapper, org.springframework.web.client.RestTemplate restTemplate, org.springframework.http.HttpHeaders headers, Class<T> valueType)
    • getResponse

      public static <T> T getResponse(String url, org.springframework.http.HttpMethod method, Object requestDTO, com.fasterxml.jackson.databind.ObjectMapper mapper, org.springframework.web.client.RestTemplate restTemplate, org.springframework.http.HttpHeaders headers, org.springframework.core.ParameterizedTypeReference<T> responseType) throws Exception
      Throws:
      Exception
    • main

      public static void main(String[] args)