public class CustomRestTemplate
extends org.springframework.web.client.RestTemplate
| 构造器和说明 |
|---|
CustomRestTemplate() |
CustomRestTemplate(java.lang.String username,
java.lang.String password) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> org.springframework.http.ResponseEntity<T> |
deleteForEntity(java.lang.String url,
java.util.Map<java.lang.String,?> urlVariables) |
<T> org.springframework.http.ResponseEntity<T> |
deleteForEntity(java.lang.String url,
java.lang.Object... uriVariables) |
protected <T> T |
doExecute(java.net.URI url,
org.springframework.http.HttpMethod method,
org.springframework.web.client.RequestCallback requestCallback,
org.springframework.web.client.ResponseExtractor<T> responseExtractor) |
protected <T> org.springframework.web.client.RequestCallback |
httpEntityCallback(java.lang.Object requestBody) |
protected <T> org.springframework.web.client.RequestCallback |
httpEntityCallback(java.lang.Object requestBody,
java.lang.reflect.Type responseType) |
<T> org.springframework.http.ResponseEntity<T> |
putForEntity(java.lang.String url,
java.lang.Object request,
java.lang.Class<T> responseType,
java.lang.Object... uriVariables) |
<T> T |
putForObject(java.lang.String url,
java.lang.Object request,
java.lang.Class<T> responseType,
java.lang.Object... uriVariables) |
void |
setPrint(boolean print) |
void |
setRequestCallback(RequestCallback requestCallback) |
acceptHeaderRequestCallback, delete, delete, delete, exchange, exchange, exchange, exchange, exchange, exchange, exchange, exchange, execute, execute, execute, getErrorHandler, getForEntity, getForEntity, getForEntity, getForObject, getForObject, getForObject, getMessageConverters, getUriTemplateHandler, handleResponse, headersExtractor, headForHeaders, headForHeaders, headForHeaders, optionsForAllow, optionsForAllow, optionsForAllow, postForEntity, postForEntity, postForEntity, postForLocation, postForLocation, postForLocation, postForObject, postForObject, postForObject, put, put, put, responseEntityExtractor, setDefaultUriVariables, setErrorHandler, setMessageConverters, setUriTemplateHandlerpublic CustomRestTemplate()
public CustomRestTemplate(java.lang.String username,
java.lang.String password)
public void setPrint(boolean print)
public void setRequestCallback(RequestCallback requestCallback)
protected <T> org.springframework.web.client.RequestCallback httpEntityCallback(java.lang.Object requestBody)
httpEntityCallback 在类中 org.springframework.web.client.RestTemplateprotected <T> org.springframework.web.client.RequestCallback httpEntityCallback(java.lang.Object requestBody,
java.lang.reflect.Type responseType)
httpEntityCallback 在类中 org.springframework.web.client.RestTemplateprotected <T> T doExecute(java.net.URI url,
org.springframework.http.HttpMethod method,
org.springframework.web.client.RequestCallback requestCallback,
org.springframework.web.client.ResponseExtractor<T> responseExtractor)
throws org.springframework.web.client.RestClientException
doExecute 在类中 org.springframework.web.client.RestTemplateorg.springframework.web.client.RestClientExceptionpublic <T> T putForObject(java.lang.String url,
java.lang.Object request,
java.lang.Class<T> responseType,
java.lang.Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> putForEntity(java.lang.String url,
java.lang.Object request,
java.lang.Class<T> responseType,
java.lang.Object... uriVariables)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientExceptionpublic <T> org.springframework.http.ResponseEntity<T> deleteForEntity(java.lang.String url,
java.lang.Object... uriVariables)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientExceptionpublic <T> org.springframework.http.ResponseEntity<T> deleteForEntity(java.lang.String url,
java.util.Map<java.lang.String,?> urlVariables)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException