类 RestTemplateUtils

java.lang.Object
org.cattleframework.utils.http.RestTemplateUtils

public class RestTemplateUtils extends Object
Rest模板工具
作者:
orange
  • 构造器详细资料

    • RestTemplateUtils

      public RestTemplateUtils(org.springframework.web.client.RestTemplate restTemplate)
  • 方法详细资料

    • post

      public <T, R> T post(String url, org.springframework.http.MediaType type, Map<String,String> headers, R request, org.springframework.core.ParameterizedTypeReference<T> responseType)
    • post

      public <T, R> T post(String url, org.springframework.http.MediaType type, Map<String,String> headers, R request, Class<T> responseType)
    • get

      public <T> T get(String url, org.springframework.http.MediaType type, Map<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType)
    • get

      public <T> T get(String url, org.springframework.http.MediaType type, Map<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Map<String,?> uriVariables)
    • get

      public <T> T get(String url, org.springframework.http.MediaType type, Map<String,String> headers, Class<T> responseType)
    • get

      public <T> T get(String url, org.springframework.http.MediaType type, Map<String,String> headers, Class<T> responseType, Map<String,?> uriVariables)