public class CustomRestTemplate
extends org.springframework.boot.test.TestRestTemplate
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
CustomRestTemplate(java.lang.String username,
java.lang.String password,
org.springframework.boot.test.TestRestTemplate.HttpClientOption... httpClientOptions) |
CustomRestTemplate(org.springframework.boot.test.TestRestTemplate.HttpClientOption... httpClientOptions) |
| 限定符和类型 | 方法和说明 |
|---|---|
<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,
org.springframework.http.MediaType mediaType,
java.util.Map<java.lang.String,?> urlVariables) |
<T> org.springframework.http.ResponseEntity<T> |
deleteForEntity(java.lang.String url,
org.springframework.http.MediaType mediaType,
java.lang.Object... uriVariables) |
<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> T |
doExecute(java.net.URI url,
org.springframework.http.HttpMethod method,
org.springframework.web.client.RequestCallback requestCallback,
org.springframework.web.client.ResponseExtractor<T> responseExtractor,
org.springframework.http.MediaType mediaType) |
<T> T |
execute(java.lang.String url,
org.springframework.http.HttpMethod method,
org.springframework.web.client.RequestCallback requestCallback,
org.springframework.web.client.ResponseExtractor<T> responseExtractor,
org.springframework.http.MediaType mediaType,
java.util.Map<java.lang.String,?> urlVariables) |
<T> T |
execute(java.lang.String url,
org.springframework.http.HttpMethod method,
org.springframework.web.client.RequestCallback requestCallback,
org.springframework.web.client.ResponseExtractor<T> responseExtractor,
org.springframework.http.MediaType mediaType,
java.lang.Object... urlVariables) |
<T> org.springframework.http.ResponseEntity<T> |
getForEntity(java.lang.String url,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
java.util.Map<java.lang.String,?> urlVariables) |
<T> org.springframework.http.ResponseEntity<T> |
getForEntity(java.lang.String url,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
java.lang.Object... urlVariables) |
<T> T |
getForObject(java.lang.String url,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
java.lang.Object... urlVariables) |
<T> org.springframework.http.ResponseEntity<T> |
postForEntity(java.lang.String url,
java.lang.Object request,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
java.lang.Object... uriVariables) |
<T> T |
postForObject(java.lang.String url,
java.lang.Object request,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
java.lang.Object... uriVariables) |
<T> org.springframework.http.ResponseEntity<T> |
putForEntity(java.lang.String url,
java.lang.Object request,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
java.lang.Object... uriVariables) |
<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,
org.springframework.http.MediaType mediaType,
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) |
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, httpEntityCallback, httpEntityCallback, optionsForAllow, optionsForAllow, optionsForAllow, postForEntity, postForEntity, postForEntity, postForLocation, postForLocation, postForLocation, postForObject, postForObject, postForObject, put, put, put, responseEntityExtractor, setErrorHandler, setMessageConverters, setUriTemplateHandlerpublic CustomRestTemplate(org.springframework.boot.test.TestRestTemplate.HttpClientOption... httpClientOptions)
public CustomRestTemplate(java.lang.String username,
java.lang.String password,
org.springframework.boot.test.TestRestTemplate.HttpClientOption... httpClientOptions)
public void setPrint(boolean print)
public <T> T execute(java.lang.String url,
org.springframework.http.HttpMethod method,
org.springframework.web.client.RequestCallback requestCallback,
org.springframework.web.client.ResponseExtractor<T> responseExtractor,
org.springframework.http.MediaType mediaType,
java.lang.Object... urlVariables)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientExceptionpublic <T> T execute(java.lang.String url,
org.springframework.http.HttpMethod method,
org.springframework.web.client.RequestCallback requestCallback,
org.springframework.web.client.ResponseExtractor<T> responseExtractor,
org.springframework.http.MediaType mediaType,
java.util.Map<java.lang.String,?> urlVariables)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientExceptionprotected <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.RestClientExceptionprotected <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,
org.springframework.http.MediaType mediaType)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientExceptionpublic <T> T getForObject(java.lang.String url,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
java.lang.Object... urlVariables)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientExceptionpublic <T> org.springframework.http.ResponseEntity<T> getForEntity(java.lang.String url,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
java.util.Map<java.lang.String,?> urlVariables)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientExceptionpublic <T> org.springframework.http.ResponseEntity<T> getForEntity(java.lang.String url,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
java.lang.Object... urlVariables)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientExceptionpublic <T> T postForObject(java.lang.String url,
java.lang.Object request,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
java.lang.Object... uriVariables)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientExceptionpublic <T> org.springframework.http.ResponseEntity<T> postForEntity(java.lang.String url,
java.lang.Object request,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
java.lang.Object... uriVariables)
throws org.springframework.web.client.RestClientException
org.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> T putForObject(java.lang.String url,
java.lang.Object request,
java.lang.Class<T> responseType,
org.springframework.http.MediaType mediaType,
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,
org.springframework.http.MediaType mediaType,
java.lang.Object... uriVariables)
throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientExceptionpublic <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,
org.springframework.http.MediaType mediaType,
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,
org.springframework.http.MediaType mediaType,
java.util.Map<java.lang.String,?> urlVariables)
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