public class RestTemplateUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
RestTemplateUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
closeConnectionsScheduled(org.apache.http.impl.conn.PoolingHttpClientConnectionManager connManager) |
org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
getConnManager() |
org.springframework.web.client.RestTemplate |
getSSLRestTemplate(int connectTimeout,
int readTimeout,
int connectionRequestTimeout,
int maxConnTotal,
int maxConnPerRoute) |
org.springframework.web.client.RestTemplate |
getTrustTemplate() |
org.springframework.web.client.RestTemplate |
getUTF8restTemplate() |
static <T> org.springframework.http.ResponseEntity<T> |
postForEntity(org.springframework.web.client.RestTemplate restTemplate,
String url,
Object request,
Class<T> responseType,
Object... uriVariables) |
public org.apache.http.impl.conn.PoolingHttpClientConnectionManager getConnManager()
public org.springframework.web.client.RestTemplate getSSLRestTemplate(int connectTimeout,
int readTimeout,
int connectionRequestTimeout,
int maxConnTotal,
int maxConnPerRoute)
public org.springframework.web.client.RestTemplate getTrustTemplate()
public org.springframework.web.client.RestTemplate getUTF8restTemplate()
public void closeConnectionsScheduled(org.apache.http.impl.conn.PoolingHttpClientConnectionManager connManager)
public static <T> org.springframework.http.ResponseEntity<T> postForEntity(org.springframework.web.client.RestTemplate restTemplate,
String url,
Object request,
Class<T> responseType,
Object... uriVariables)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientExceptionCopyright © 2023. All rights reserved.